home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-02-26 | 71.0 KB | [ TEXT/CCL2]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Fri Feb 26 15:54:46 1993, modified Fri Feb 26 15:54:46 1993, creator Common Lisp 2, type ASCII, 71909 bytes "print-u.lisp-0" , at 0x11965 614 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ CCL2]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0e 70 72 69 6e 74 2d | 75 2e 6c 69 73 70 2d 30 |..print-|u.lisp-0| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......| |00000050| 00 00 00 00 01 18 e5 00 | 00 02 66 a7 b4 34 16 a7 |........|..f..4..| |00000060| b4 34 16 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.4......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9a 28 00 00 |........|.....(..| |00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 63 63 6c |(in-pack|age :ccl| |00000090| 29 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |).;;;;;;|;;;;;;;;| |000000a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 3b 20 70 72 69 6e |;;;;;;;;|.;; prin| |000000e0| 74 2d 75 2e 6c 69 73 70 | 0d 3b 3b 0d 3b 3b 20 43 |t-u.lisp|.;;.;; C| |000000f0| 6f 70 79 72 69 67 68 74 | 20 20 31 39 39 32 2c 31 |opyright| 1992,1| |00000100| 39 39 33 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |993 Univ|ersity o| |00000110| 66 20 54 6f 72 6f 6e 74 | 6f 2c 20 44 65 70 61 72 |f Toront|o, Depar| |00000120| 74 6d 65 6e 74 20 6f 66 | 20 43 6f 6d 70 75 74 65 |tment of| Compute| |00000130| 72 20 53 63 69 65 6e 63 | 65 0d 3b 3b 20 41 6c 6c |r Scienc|e.;; All| |00000140| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved| |00000150| 0d 3b 3b 0d 3b 3b 20 61 | 75 74 68 6f 72 3a 20 4d |.;;.;; a|uthor: M| |00000160| 61 72 6b 20 41 2e 20 54 | 61 70 69 61 20 6d 61 72 |ark A. T|apia mar| |00000170| 6b 74 40 64 67 70 2e 74 | 6f 72 6f 6e 74 6f 2e 65 |kt@dgp.t|oronto.e| |00000180| 64 75 20 6f 72 20 6d 61 | 72 6b 74 40 64 67 70 2e |du or ma|rkt@dgp.| |00000190| 75 74 6f 72 6f 6e 74 6f | 2e 63 61 0d 3b 3b 0d 3b |utoronto|.ca.;;.;| |000001a0| 3b 20 70 72 69 6e 74 2d | 75 20 69 73 20 61 20 70 |; print-|u is a p| |000001b0| 61 63 6b 61 67 65 20 66 | 6f 72 20 70 72 69 6e 74 |ackage f|or print| |000001c0| 69 6e 67 20 77 69 6e 64 | 6f 77 73 20 61 6e 64 20 |ing wind|ows and | |000001d0| 64 6f 63 75 6d 65 6e 74 | 73 2e 20 0d 3b 3b 20 54 |document|s. .;; T| |000001e0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 74 |he follo|wing met| |000001f0| 68 6f 64 73 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |hods and| functio| |00000200| 6e 73 20 61 72 65 20 65 | 78 70 6f 72 74 65 64 3a |ns are e|xported:| |00000210| 0d 3b 3b 20 20 20 20 20 | 20 20 20 67 65 74 2d 70 |.;; | get-p| |00000220| 72 69 6e 74 65 72 2d 65 | 72 72 6f 72 20 20 20 20 |rinter-e|rror | |00000230| 66 6f 72 20 72 65 74 75 | 72 6e 69 6e 67 20 74 68 |for retu|rning th| |00000240| 65 20 65 72 72 6f 72 20 | 63 6f 6e 64 69 74 69 6f |e error |conditio| |00000250| 6e 20 6f 72 20 6e 69 6c | 20 28 6e 6f 20 65 72 72 |n or nil| (no err| |00000260| 6f 72 29 0d 3b 3b 20 20 | 20 20 20 20 20 20 70 61 |or).;; | pa| |00000270| 67 65 2d 73 69 7a 65 20 | 20 20 20 20 20 20 20 20 |ge-size | | |00000280| 20 20 20 70 6f 69 6e 74 | 20 69 6e 64 69 63 61 74 | point| indicat| |00000290| 69 6e 67 20 74 68 65 20 | 70 61 67 65 20 73 69 7a |ing the |page siz| |000002a0| 65 20 75 73 65 64 20 66 | 6f 72 20 70 72 69 6e 74 |e used f|or print| |000002b0| 69 6e 67 0d 3b 3b 20 20 | 20 20 20 20 20 20 70 69 |ing.;; | pi| |000002c0| 63 74 75 72 65 2d 68 61 | 72 64 63 6f 70 79 20 20 |cture-ha|rdcopy | |000002d0| 20 20 20 66 6f 72 20 71 | 75 69 63 6b 64 72 61 77 | for q|uickdraw| |000002e0| 20 70 69 63 74 75 72 65 | 73 0d 3b 3b 20 20 20 20 | picture|s.;; | |000002f0| 20 20 20 20 70 72 69 6e | 74 2d 63 6f 6e 74 65 6e | prin|t-conten| |00000300| 74 73 20 20 20 20 20 20 | 20 66 6f 72 20 64 72 61 |ts | for dra| |00000310| 77 69 6e 67 20 74 68 65 | 20 6e 65 73 74 65 64 20 |wing the| nested | |00000320| 76 69 65 77 73 20 6f 66 | 20 61 20 77 69 6e 64 6f |views of| a windo| |00000330| 77 0d 3b 3b 20 20 20 20 | 20 20 20 20 76 69 65 77 |w.;; | view| |00000340| 2d 70 72 69 6e 74 2d 63 | 6f 6e 74 65 6e 74 73 20 |-print-c|ontents | |00000350| 20 66 6f 72 20 70 72 69 | 6e 74 69 6e 67 20 61 20 | for pri|nting a | |00000360| 73 65 72 69 65 73 20 6f | 66 20 76 69 65 77 73 0d |series o|f views.| |00000370| 3b 3b 20 20 20 20 20 20 | 20 20 73 63 61 6c 65 2d |;; | scale-| |00000380| 6c 69 6e 65 2d 77 69 64 | 74 68 20 20 20 20 20 73 |line-wid|th s| |00000390| 65 74 73 20 74 68 65 20 | 73 63 61 6c 69 6e 67 20 |ets the |scaling | |000003a0| 66 61 63 74 6f 72 20 66 | 6f 72 20 6c 69 6e 65 20 |factor f|or line | |000003b0| 77 69 64 74 68 20 66 6f | 72 20 50 6f 73 74 53 63 |width fo|r PostSc| |000003c0| 72 69 70 74 20 64 65 76 | 69 63 65 73 0d 3b 3b 20 |ript dev|ices.;; | |000003d0| 20 20 20 20 20 20 20 6e | 6f 72 6d 61 6c 2d 6c 69 | n|ormal-li| |000003e0| 6e 65 2d 77 69 64 74 68 | 20 20 20 20 73 65 74 73 |ne-width| sets| |000003f0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6c 69 6e 65 | PostScr|ipt line| |00000400| 20 77 69 64 74 68 20 74 | 6f 20 28 31 20 31 29 0d | width t|o (1 1).| |00000410| 3b 3b 0d 3b 3b 20 49 6e | 74 65 72 6e 61 6c 20 28 |;;.;; In|ternal (| |00000420| 75 6e 65 78 70 6f 72 74 | 65 64 29 20 72 6f 75 74 |unexport|ed) rout| |00000430| 69 6e 65 73 20 6f 66 20 | 69 6e 74 65 72 65 73 74 |ines of |interest| |00000440| 0d 3b 3b 20 20 20 20 20 | 20 20 20 64 6f 63 75 6d |.;; | docum| |00000450| 65 6e 74 2d 68 61 72 64 | 63 6f 70 79 20 20 20 20 |ent-hard|copy | |00000460| 66 6f 72 20 70 72 69 6e | 74 69 6e 67 20 61 20 67 |for prin|ting a g| |00000470| 65 6e 65 72 61 6c 20 64 | 6f 63 75 6d 65 6e 74 0d |eneral d|ocument.| |00000480| 3b 3b 20 20 20 20 20 20 | 20 20 77 69 6e 64 6f 77 |;; | window| |00000490| 2d 68 61 72 64 63 6f 70 | 79 20 20 20 20 20 20 66 |-hardcop|y f| |000004a0| 6f 72 20 70 72 69 6e 74 | 69 6e 67 20 74 68 65 20 |or print|ing the | |000004b0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 61 20 77 69 |contents| of a wi| |000004c0| 6e 64 6f 77 20 75 73 69 | 6e 67 0d 3b 3b 20 20 20 |ndow usi|ng.;; | |000004d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000004e0| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 2d | | print-| |000004f0| 63 6f 6e 74 65 6e 74 73 | 0d 0d 3b 3b 20 20 20 20 |contents|..;; | |00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000510| 20 20 20 20 20 20 20 20 | 20 52 6f 75 74 69 6e 65 | | Routine| |00000520| 73 20 74 68 61 74 20 68 | 61 6e 64 6c 65 20 70 75 |s that h|andle pu| |00000530| 62 6c 69 63 20 61 6e 64 | 20 70 72 69 76 61 74 65 |blic and| private| |00000540| 20 70 72 69 6e 74 20 72 | 65 63 6f 72 64 73 0d 3b | print r|ecords.;| |00000550| 3b 20 20 20 20 20 20 20 | 20 63 68 65 63 6b 2d 70 |; | check-p| |00000560| 72 69 6e 74 2d 70 72 65 | 63 20 20 20 20 20 72 65 |rint-pre|c re| |00000570| 74 72 69 65 76 65 73 20 | 61 6e 64 20 76 61 6c 69 |trieves |and vali| |00000580| 64 61 74 65 73 20 74 68 | 65 20 70 72 69 6e 74 20 |dates th|e print | |00000590| 72 65 63 6f 72 64 20 28 | 67 65 74 2d 70 72 69 6e |record (|get-prin| |000005a0| 74 2d 70 72 65 63 20 6f | 62 6a 65 63 74 29 0d 3b |t-prec o|bject).;| |000005b0| 3b 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 |; | default| |000005c0| 2d 70 72 65 63 20 20 20 | 20 20 20 20 20 20 63 72 |-prec | cr| |000005d0| 65 61 74 65 73 20 61 20 | 64 65 66 61 75 6c 74 20 |eates a |default | |000005e0| 70 72 69 76 61 74 65 20 | 70 72 69 6e 74 20 72 65 |private |print re| |000005f0| 63 6f 72 64 0d 3b 3b 20 | 20 20 20 20 20 20 20 67 |cord.;; | g| |00000600| 65 74 2d 70 72 65 63 20 | 20 20 20 20 20 20 20 20 |et-prec | | |00000610| 20 20 20 20 72 65 74 72 | 69 65 76 65 73 20 28 61 | retr|ieves (a| |00000620| 6e 64 20 70 6f 73 73 69 | 62 6c 79 20 63 72 65 61 |nd possi|bly crea| |00000630| 74 65 73 29 20 61 20 70 | 72 69 6e 74 20 72 65 63 |tes) a p|rint rec| |00000640| 6f 72 64 20 66 6f 72 20 | 61 6e 20 6f 62 6a 65 63 |ord for |an objec| |00000650| 74 0d 3b 3b 20 20 20 20 | 20 20 20 20 67 65 74 2d |t.;; | get-| |00000660| 70 72 69 6e 74 2d 70 72 | 65 63 20 20 20 20 20 20 |print-pr|ec | |00000670| 20 63 61 6c 6c 73 20 67 | 65 74 2d 70 72 65 63 20 | calls g|et-prec | |00000680| 6f 6e 20 74 68 65 20 6f | 75 74 65 72 6d 6f 73 74 |on the o|utermost| |00000690| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 76 69 65 77 | contain|ing view| |000006a0| 0d 3b 3b 20 20 20 20 20 | 20 20 20 70 72 65 63 2d |.;; | prec-| |000006b0| 67 65 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |get | | |000006c0| 72 65 74 72 69 65 76 65 | 73 20 61 20 70 72 69 6e |retrieve|s a prin| |000006d0| 74 20 72 65 63 6f 72 64 | 20 66 6f 72 20 61 6e 20 |t record| for an | |000006e0| 6f 62 6a 65 63 74 0d 3b | 3b 20 20 20 20 20 20 20 |object.;|; | |000006f0| 20 70 72 65 63 2d 70 75 | 74 20 20 20 20 20 20 20 | prec-pu|t | |00000700| 20 20 20 20 20 20 61 73 | 73 6f 63 69 61 74 65 73 | as|sociates| |00000710| 20 61 20 70 72 69 6e 74 | 2d 72 65 63 6f 72 64 20 | a print|-record | |00000720| 77 69 74 68 20 61 6e 20 | 6f 62 6a 65 63 74 0d 3b |with an |object.;| |00000730| 3b 20 20 20 20 20 20 20 | 20 72 65 6d 6f 76 65 2d |; | remove-| |00000740| 70 72 65 63 20 20 20 20 | 20 20 20 20 20 20 72 65 |prec | re| |00000750| 6d 6f 76 65 73 20 61 20 | 70 72 69 6e 74 2d 72 65 |moves a |print-re| |00000760| 63 6f 72 64 20 61 73 73 | 6f 63 69 61 74 65 64 20 |cord ass|ociated | |00000770| 77 69 74 68 20 61 6e 20 | 6f 62 6a 65 63 74 0d 3b |with an |object.;| |00000780| 3b 20 20 20 20 20 20 20 | 20 72 65 6d 6f 76 65 2d |; | remove-| |00000790| 68 63 2d 70 72 65 63 20 | 20 20 20 20 20 20 72 65 |hc-prec | re| |000007a0| 6d 6f 76 65 73 20 74 68 | 65 20 70 75 62 6c 69 63 |moves th|e public| |000007b0| 20 70 72 69 6e 74 2d 72 | 65 63 6f 72 64 0d 3b 3b | print-r|ecord.;;| |000007c0| 20 20 20 20 20 20 20 20 | 72 65 70 6c 61 63 65 2d | |replace-| |000007d0| 70 72 65 63 20 20 20 20 | 20 20 20 20 20 72 65 70 |prec | rep| |000007e0| 6c 61 63 65 73 20 74 68 | 65 20 70 72 69 6e 74 20 |laces th|e print | |000007f0| 72 65 63 6f 72 64 20 61 | 73 73 6f 63 69 61 74 65 |record a|ssociate| |00000800| 64 20 77 69 74 68 20 74 | 68 65 20 6f 62 6a 65 63 |d with t|he objec| |00000810| 74 0d 3b 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |t.;; | | |00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000830| 20 6f 6e 6c 79 20 69 66 | 20 69 74 20 69 73 20 64 | only if| it is d| |00000840| 69 66 66 65 72 65 6e 74 | 0d 3b 3b 20 20 20 20 20 |ifferent|.;; | |00000850| 20 20 20 75 70 64 61 74 | 65 2d 66 69 6c 65 2d 70 | updat|e-file-p| |00000860| 72 65 63 20 20 20 20 20 | 73 61 76 65 73 20 61 20 |rec |saves a | |00000870| 63 6f 70 79 20 6f 66 20 | 61 20 70 72 69 76 61 74 |copy of |a privat| |00000880| 65 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 20 69 |e print |record i| |00000890| 6e 20 61 20 72 65 73 6f | 75 72 63 65 20 0d 3b 3b |n a reso|urce .;;| |000008a0| 20 20 20 20 20 20 20 20 | 76 69 65 77 2d 66 69 6c | |view-fil| |000008b0| 65 2d 6e 61 6d 65 20 20 | 20 20 20 20 20 74 68 65 |e-name | the| |000008c0| 20 70 61 74 68 6e 61 6d | 65 20 6f 66 20 74 68 65 | pathnam|e of the| |000008d0| 20 66 69 6c 65 20 61 73 | 73 6f 63 69 61 74 65 64 | file as|sociated| |000008e0| 20 77 69 74 68 20 61 6e | 20 6f 62 6a 65 63 74 0d | with an| object.| |000008f0| 3b 3b 0d 3b 3b 20 41 63 | 6b 6e 6f 77 6c 65 64 67 |;;.;; Ac|knowledg| |00000900| 65 6d 65 6e 74 73 3a 0d | 3b 3b 20 20 20 20 20 54 |ements:.|;; T| |00000910| 68 69 73 20 63 6f 64 65 | 20 69 73 20 62 61 73 65 |his code| is base| |00000920| 64 20 6f 6e 20 70 72 69 | 6e 74 2d 75 74 69 6c 73 |d on pri|nt-utils| |00000930| 2e 6c 69 73 70 20 77 72 | 69 74 74 65 6e 20 62 79 |.lisp wr|itten by| |00000940| 20 44 45 48 20 36 2f 32 | 30 2f 39 31 20 61 6e 64 | DEH 6/2|0/91 and| |00000950| 0d 3b 3b 20 20 20 20 20 | 62 61 73 65 64 20 6f 6e |.;; |based on| |00000960| 20 68 61 72 64 63 6f 70 | 79 2e 6c 69 73 70 20 77 | hardcop|y.lisp w| |00000970| 69 74 68 20 63 6f 70 79 | 72 69 67 68 74 20 31 39 |ith copy|right 19| |00000980| 38 38 2d 38 39 20 41 70 | 70 6c 65 20 43 6f 6d 70 |88-89 Ap|ple Comp| |00000990| 75 74 65 72 2c 20 49 6e | 63 2e 20 0d 3b 3b 20 20 |uter, In|c. .;; | |000009a0| 20 20 20 54 68 65 20 70 | 72 69 6e 74 2d 75 74 69 | The p|rint-uti| |000009b0| 6c 73 20 63 6f 64 65 20 | 68 61 73 20 62 65 65 6e |ls code |has been| |000009c0| 20 6d 6f 64 69 66 69 65 | 64 20 74 6f 20 77 6f 72 | modifie|d to wor| |000009d0| 6b 20 69 6e 20 4d 43 4c | 32 2e 30 20 61 6e 64 0d |k in MCL|2.0 and.| |000009e0| 3b 3b 20 20 20 20 20 74 | 6f 20 70 72 69 6e 74 20 |;; t|o print | |000009f0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of | |00000a00| 6f 74 68 65 72 20 76 69 | 65 77 73 20 61 6e 64 20 |other vi|ews and | |00000a10| 74 6f 20 73 75 70 70 6f | 72 74 20 67 65 6e 65 72 |to suppo|rt gener| |00000a20| 61 6c 69 7a 65 64 20 70 | 72 69 6e 74 69 6e 67 2e |alized p|rinting.| |00000a30| 0d 3b 3b 0d 3b 3b 20 20 | 20 20 20 54 68 69 73 20 |.;;.;; | This | |00000a40| 63 6f 64 65 20 61 6c 73 | 6f 20 75 73 65 73 20 74 |code als|o uses t| |00000a50| 68 65 20 77 69 74 68 2d | 76 69 65 77 2d 66 6f 6e |he with-|view-fon| |00000a60| 74 20 61 6e 64 20 77 69 | 74 68 2d 70 65 6e 2d 73 |t and wi|th-pen-s| |00000a70| 74 61 74 65 20 6d 61 63 | 72 6f 73 0d 3b 3b 20 20 |tate mac|ros.;; | |00000a80| 20 20 20 66 72 6f 6d 20 | 6f 6f 64 6c 65 73 2d 6f | from |oodles-o| |00000a90| 66 2d 75 74 69 6c 73 3a | 71 75 69 63 6b 64 72 61 |f-utils:|quickdra| |00000aa0| 77 2d 75 2e 6c 69 73 70 | 20 62 79 20 4d 69 63 68 |w-u.lisp| by Mich| |00000ab0| 61 65 6c 20 53 2e 20 45 | 6e 67 62 65 72 2e 0d 3b |ael S. E|ngber..;| |00000ac0| 3b 20 20 20 20 20 43 6f | 70 79 72 69 67 68 74 20 |; Co|pyright | |00000ad0| 20 31 39 39 31 20 4e 6f | 72 74 68 77 65 73 74 65 | 1991 No|rthweste| |00000ae0| 72 6e 20 55 6e 69 76 65 | 72 73 69 74 79 20 49 6e |rn Unive|rsity In| |00000af0| 73 74 69 74 75 74 65 20 | 66 6f 72 20 74 68 65 20 |stitute |for the | |00000b00| 4c 65 61 72 6e 69 6e 67 | 20 53 63 69 65 6e 63 65 |Learning| Science| |00000b10| 73 0d 3b 3b 20 20 20 20 | 20 41 6c 6c 20 52 69 67 |s.;; | All Rig| |00000b20| 68 74 73 20 52 65 73 65 | 72 76 65 64 2e 0d 3b 3b |hts Rese|rved..;;| |00000b30| 0d 3b 3b 20 20 20 20 20 | 53 75 70 70 6f 72 74 20 |.;; |Support | |00000b40| 66 6f 72 20 70 72 69 76 | 61 74 65 20 70 72 69 6e |for priv|ate prin| |00000b50| 74 20 72 65 63 6f 72 64 | 73 20 77 61 73 20 62 61 |t record|s was ba| |00000b60| 73 65 64 20 6f 6e 20 73 | 75 67 67 65 73 74 69 6f |sed on s|uggestio| |00000b70| 6e 73 20 62 79 20 47 72 | 65 67 6f 72 79 0d 3b 3b |ns by Gr|egory.;;| |00000b80| 20 20 20 20 20 57 69 6c | 63 6f 78 2e 20 54 68 65 | Wil|cox. The| |00000b90| 20 69 64 65 61 73 20 77 | 65 72 65 20 72 65 66 69 | ideas w|ere refi| |00000ba0| 6e 65 64 20 62 79 20 42 | 69 6c 6c 20 53 74 2e 20 |ned by B|ill St. | |00000bb0| 43 6c 61 69 72 2e 0d 3b | 3b 0d 3b 3b 20 20 20 20 |Clair..;|;.;; | |00000bc0| 20 53 75 70 70 6f 72 74 | 20 66 6f 72 20 74 68 65 | Support| for the| |00000bd0| 20 73 65 74 4c 69 6e 65 | 57 69 64 74 68 20 50 6f | setLine|Width Po| |00000be0| 73 74 53 63 72 69 70 74 | 20 63 6f 6d 6d 61 6e 64 |stScript| command| |00000bf0| 20 62 61 73 65 64 20 6f | 6e 20 73 75 67 67 65 73 | based o|n sugges| |00000c00| 74 69 6f 6e 73 0d 3b 3b | 20 20 20 20 20 62 79 20 |tions.;;| by | |00000c10| 4b 65 6d 69 20 4a 6f 6e | 61 2e 0d 3b 3b 0d 3b 3b |Kemi Jon|a..;;.;;| |00000c20| 20 55 70 64 61 74 65 20 | 68 69 73 74 6f 72 79 3a | Update |history:| |00000c30| 0d 3b 3b 20 20 31 39 39 | 32 2d 30 36 2d 30 37 20 |.;; 199|2-06-07 | |00000c40| 20 41 64 64 65 64 20 70 | 61 67 65 2d 73 69 7a 65 | Added p|age-size| |00000c50| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 72 65 74 72 | method |for retr| |00000c60| 69 65 76 69 6e 67 20 74 | 68 65 20 70 61 67 65 20 |ieving t|he page | |00000c70| 73 69 7a 65 0d 3b 3b 20 | 20 31 39 39 32 2d 31 30 |size.;; | 1992-10| |00000c80| 2d 32 37 20 20 41 64 64 | 65 65 64 20 73 75 70 70 |-27 Add|eed supp| |00000c90| 6f 72 74 20 66 6f 72 20 | 70 72 69 76 61 74 65 20 |ort for |private | |00000ca0| 70 72 69 6e 74 20 72 65 | 63 6f 72 64 73 20 73 74 |print re|cords st| |00000cb0| 6f 72 65 64 20 77 69 74 | 68 20 74 68 65 0d 3b 3b |ored wit|h the.;;| |00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi| |00000cd0| 6c 65 20 69 6e 20 74 68 | 65 20 72 65 73 6f 75 72 |le in th|e resour| |00000ce0| 63 65 20 66 6f 72 6b 20 | 28 3a 74 79 70 65 20 3a |ce fork |(:type :| |00000cf0| 70 72 65 63 20 3a 72 65 | 73 6f 75 72 63 65 2d 69 |prec :re|source-i| |00000d00| 64 20 31 32 38 29 2e 0d | 3b 3b 20 20 31 39 39 33 |d 128)..|;; 1993| |00000d10| 2d 30 32 2d 30 38 20 20 | 41 64 64 65 64 20 73 75 |-02-08 |Added su| |00000d20| 70 70 6f 72 74 20 66 6f | 72 20 73 65 74 4c 69 6e |pport fo|r setLin| |00000d30| 65 57 69 64 74 68 20 66 | 6f 72 20 50 6f 73 74 53 |eWidth f|or PostS| |00000d40| 63 72 69 70 74 20 6c 69 | 6e 65 73 2e 0d 3b 3b 20 |cript li|nes..;; | |00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 52 65 70 | | Rep| |00000d60| 6c 61 63 65 64 20 28 72 | 65 71 75 69 72 65 20 3a |laced (r|equire :| |00000d70| 51 75 69 63 6b 44 72 61 | 77 29 20 77 69 74 68 20 |QuickDra|w) with | |00000d80| 6d 61 63 72 6f 20 77 69 | 74 68 2d 72 65 63 74 61 |macro wi|th-recta| |00000d90| 6e 67 6c 65 2d 61 72 67 | 20 0d 3b 3b 20 20 20 20 |ngle-arg| .;; | |00000da0| 20 20 20 20 20 20 20 20 | 20 20 61 6e 64 20 66 75 | | and fu| |00000db0| 6e 63 74 69 6f 6e 20 73 | 65 74 75 70 2d 72 65 63 |nction s|etup-rec| |00000dc0| 74 2c 20 69 66 20 6e 6f | 74 20 70 72 65 73 65 6e |t, if no|t presen| |00000dd0| 74 2e 0d 3b 3b 0d 3b 3b | 20 4e 4f 54 45 3a 20 45 |t..;;.;;| NOTE: E| |00000de0| 76 65 72 79 20 77 69 6e | 64 6f 77 20 68 61 73 20 |very win|dow has | |00000df0| 61 20 70 72 69 76 61 74 | 65 20 70 72 69 6e 74 20 |a privat|e print | |00000e00| 72 65 63 6f 72 64 20 77 | 68 69 63 68 20 63 6f 6e |record w|hich con| |00000e10| 74 72 6f 6c 73 20 74 68 | 65 0d 3b 3b 20 20 20 20 |trols th|e.;; | |00000e20| 20 20 20 77 61 79 20 74 | 68 65 20 77 69 6e 64 6f | way t|he windo| |00000e30| 77 20 77 69 6c 6c 20 62 | 65 20 70 72 69 6e 74 65 |w will b|e printe| |00000e40| 64 20 61 6e 64 20 74 68 | 65 20 61 74 74 72 69 62 |d and th|e attrib| |00000e50| 75 74 65 73 20 69 6e 20 | 74 68 65 0d 3b 3b 20 20 |utes in |the.;; | |00000e60| 20 20 20 20 20 70 72 69 | 6e 74 2d 73 74 79 6c 65 | pri|nt-style| |00000e70| 2d 64 69 61 6c 6f 67 20 | 62 6f 78 2e 20 54 68 65 |-dialog |box. The| |00000e80| 20 70 72 69 76 61 74 65 | 20 70 72 69 6e 74 20 72 | private| print r| |00000e90| 65 63 6f 72 64 20 69 73 | 20 73 74 6f 72 65 64 20 |ecord is| stored | |00000ea0| 69 6e 20 74 68 65 0d 3b | 3b 20 20 20 20 20 20 20 |in the.;|; | |00000eb0| 72 65 73 6f 75 72 63 65 | 20 66 6f 72 6b 20 6f 66 |resource| fork of| |00000ec0| 20 74 68 65 20 66 69 6c | 65 20 77 68 65 6e 20 69 | the fil|e when i| |00000ed0| 74 20 69 73 20 73 61 76 | 65 64 20 28 3a 74 79 70 |t is sav|ed (:typ| |00000ee0| 65 20 3a 70 72 65 63 20 | 3a 72 65 73 6f 75 72 63 |e :prec |:resourc| |00000ef0| 65 2d 64 20 31 32 38 29 | 0d 3b 3b 20 20 20 20 20 |e-d 128)|.;; | |00000f00| 20 20 61 6e 64 20 77 68 | 65 6e 20 74 68 65 20 50 | and wh|en the P| |00000f10| 61 67 65 20 53 65 74 75 | 70 20 6d 65 74 68 6f 64 |age Setu|p method| |00000f20| 20 69 73 20 73 65 6c 65 | 63 74 65 64 2e 0d 3b 3b | is sele|cted..;;| |00000f30| 20 20 20 20 20 20 20 54 | 68 65 20 70 72 69 76 61 | T|he priva| |00000f40| 74 65 20 70 72 69 6e 74 | 20 72 65 63 6f 72 64 20 |te print| record | |00000f50| 69 73 20 72 65 73 74 6f | 72 65 64 20 77 68 65 6e |is resto|red when| |00000f60| 20 74 68 65 20 66 69 6c | 65 20 69 73 20 65 64 69 | the fil|e is edi| |00000f70| 74 65 64 20 61 67 61 69 | 6e 2e 0d 3b 3b 20 20 20 |ted agai|n..;; | |00000f80| 20 20 20 20 0d 3b 3b 20 | 20 20 20 20 20 20 45 76 | .;; | Ev| |00000f90| 65 72 79 20 73 70 65 63 | 69 66 69 63 20 76 69 65 |ery spec|ific vie| |00000fa0| 77 20 75 73 65 73 20 74 | 68 65 20 70 72 69 76 61 |w uses t|he priva| |00000fb0| 74 65 20 70 72 69 6e 74 | 20 72 65 63 6f 72 64 20 |te print| record | |00000fc0| 6f 66 20 74 68 65 20 6f | 75 74 65 72 6d 6f 73 74 |of the o|utermost| |00000fd0| 0d 3b 3b 20 20 20 20 20 | 20 20 76 69 65 77 20 63 |.;; | view c| |00000fe0| 6f 6e 74 61 69 6e 69 6e | 67 20 74 68 65 20 73 70 |ontainin|g the sp| |00000ff0| 65 63 69 66 69 63 20 76 | 69 65 77 2e 0d 3b 3b 0d |ecific v|iew..;;.| |00001000| 3b 3b 20 20 20 20 20 20 | 20 41 20 70 72 69 76 61 |;; | A priva| |00001010| 74 65 20 70 72 69 6e 74 | 20 72 65 63 6f 72 64 20 |te print| record | |00001020| 6f 66 20 61 20 77 69 6e | 64 6f 77 20 69 73 20 73 |of a win|dow is s| |00001030| 61 76 65 64 20 77 68 65 | 6e 20 74 68 65 20 77 69 |aved whe|n the wi| |00001040| 6e 64 6f 77 0d 3b 3b 20 | 20 20 20 20 20 20 69 73 |ndow.;; | is| |00001050| 20 73 61 76 65 64 20 28 | 75 73 69 6e 67 20 53 61 | saved (|using Sa| |00001060| 76 65 2c 20 53 61 76 65 | 20 41 73 2c 20 6f 72 20 |ve, Save| As, or | |00001070| 53 61 76 65 20 43 6f 70 | 79 20 41 73 20 61 6e 64 |Save Cop|y As and| |00001080| 20 77 68 65 6e 20 74 68 | 65 0d 3b 3b 20 20 20 20 | when th|e.;; | |00001090| 20 20 20 77 69 6e 64 6f | 77 20 69 73 20 63 6c 6f | windo|w is clo| |000010a0| 73 65 64 20 61 6e 64 20 | 6e 65 65 64 73 20 74 6f |sed and |needs to| |000010b0| 20 62 65 20 73 61 76 65 | 64 2e 20 4d 65 74 68 6f | be save|d. Metho| |000010c0| 64 73 20 61 72 65 20 64 | 65 66 69 6e 65 64 0d 3b |ds are d|efined.;| |000010d0| 3b 20 20 20 20 20 20 20 | 66 6f 72 20 66 72 65 64 |; |for fred| |000010e0| 20 77 69 6e 64 6f 77 73 | 2e 0d 3b 3b 0d 3b 3b 20 | windows|..;;.;; | |000010f0| 20 20 20 20 20 20 46 6f | 72 20 61 6c 6c 20 6f 74 | Fo|r all ot| |00001100| 68 65 72 20 77 69 6e 64 | 6f 77 73 2c 20 79 6f 75 |her wind|ows, you| |00001110| 20 6d 75 73 74 20 70 72 | 6f 76 69 64 65 20 61 20 | must pr|ovide a | |00001120| 6d 65 74 68 6f 64 20 66 | 6f 72 20 73 61 76 69 6e |method f|or savin| |00001130| 67 0d 3b 3b 20 20 20 20 | 20 20 20 74 68 65 20 66 |g.;; | the f| |00001140| 69 6c 65 20 28 63 63 6c | 3a 3a 77 69 6e 64 6f 77 |ile (ccl|::window| |00001150| 2d 73 61 76 65 20 75 73 | 69 6e 67 20 63 63 6c 3a |-save us|ing ccl:| |00001160| 3a 77 69 6e 64 6f 77 2d | 66 69 6c 65 2d 73 61 76 |:window-|file-sav| |00001170| 65 20 77 68 69 63 68 0d | 3b 3b 20 20 20 20 20 20 |e which.|;; | |00001180| 20 6d 75 73 74 20 72 65 | 74 75 72 6e 20 74 68 65 | must re|turn the| |00001190| 20 70 61 74 68 6e 61 6d | 65 29 20 61 6e 64 20 61 | pathnam|e) and a| |000011a0| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 28 76 69 65 | method |for (vie| |000011b0| 77 2d 66 69 6c 65 2d 6e | 61 6d 65 20 77 69 6e 64 |w-file-n|ame wind| |000011c0| 6f 77 29 0d 3b 3b 20 20 | 20 20 20 20 20 20 0d 3b |ow).;; | .;| |000011d0| 3b 20 20 20 20 20 20 20 | 57 68 65 6e 20 61 20 74 |; |When a t| |000011e0| 69 74 6c 65 64 20 66 72 | 65 64 2d 77 69 6e 64 6f |itled fr|ed-windo| |000011f0| 77 20 69 73 20 73 61 76 | 65 64 20 28 75 73 69 6e |w is sav|ed (usin| |00001200| 67 20 74 68 65 20 66 69 | 6c 65 20 6d 65 6e 75 0d |g the fi|le menu.| |00001210| 3b 3b 20 20 20 20 20 20 | 20 69 74 65 6d 73 20 22 |;; | items "| |00001220| 73 61 76 65 22 2c 20 22 | 53 61 76 65 20 41 73 20 |save", "|Save As | |00001230| 2e 2e 2e 22 20 22 53 61 | 76 65 20 43 6f 70 79 20 |..." "Sa|ve Copy | |00001240| 41 73 2e 2e 2e 22 29 2c | 20 74 68 65 20 70 61 67 |As..."),| the pag| |00001250| 65 20 0d 3b 3b 20 20 20 | 20 20 20 20 73 65 74 75 |e .;; | setu| |00001260| 70 20 61 74 74 72 69 62 | 75 74 65 73 20 61 72 65 |p attrib|utes are| |00001270| 20 73 61 76 65 64 20 69 | 6e 20 61 20 70 72 69 6e | saved i|n a prin| |00001280| 74 20 72 65 63 6f 72 64 | 20 69 6e 20 74 68 65 20 |t record| in the | |00001290| 66 69 6c 65 2e 20 0d 3b | 3b 20 20 20 20 20 20 20 |file. .;|; | |000012a0| 54 68 65 20 72 65 63 6f | 72 64 20 69 73 20 70 6c |The reco|rd is pl| |000012b0| 61 63 65 64 20 69 6e 20 | 74 68 65 20 3a 70 72 65 |aced in |the :pre| |000012c0| 63 20 72 65 73 6f 75 72 | 63 65 20 77 69 74 68 20 |c resour|ce with | |000012d0| 69 64 20 31 32 38 2e 20 | 20 0d 3b 3b 20 20 20 20 |id 128. | .;; | |000012e0| 20 20 20 57 68 65 6e 20 | 74 68 65 20 66 69 6c 65 | When |the file| |000012f0| 20 69 73 20 72 65 6f 70 | 65 6e 65 64 20 69 6e 20 | is reop|ened in | |00001300| 61 20 66 72 65 64 2d 77 | 69 6e 64 6f 77 2c 20 74 |a fred-w|indow, t| |00001310| 68 65 20 70 61 67 65 20 | 73 65 74 75 70 20 0d 3b |he page |setup .;| |00001320| 3b 20 20 20 20 20 20 20 | 61 74 74 72 69 62 75 74 |; |attribut| |00001330| 65 73 20 61 72 65 20 72 | 65 73 74 6f 72 65 64 2e |es are r|estored.| |00001340| 0d 3b 3b 20 20 20 20 0d | 3b 3b 0d 3b 3b 20 20 20 |.;; .|;;.;; | |00001350| 20 20 20 20 45 76 65 72 | 79 20 6f 74 68 65 72 20 | Ever|y other | |00001360| 6f 62 6a 65 63 74 20 75 | 73 65 73 20 61 20 73 68 |object u|ses a sh| |00001370| 61 72 65 64 2c 20 70 75 | 62 6c 69 63 20 70 72 69 |ared, pu|blic pri| |00001380| 6e 74 20 72 65 63 6f 72 | 64 20 2a 70 72 69 6e 74 |nt recor|d *print| |00001390| 2d 68 63 2d 70 72 65 63 | 2a 2e 0d 3b 3b 20 20 20 |-hc-prec|*..;; | |000013a0| 20 20 20 20 54 68 69 73 | 20 70 72 69 6e 74 20 72 | This| print r| |000013b0| 65 63 6f 72 64 20 69 73 | 20 69 6e 69 74 69 61 6c |ecord is| initial| |000013c0| 69 7a 65 64 20 61 74 20 | 74 68 65 20 62 65 67 69 |ized at |the begi| |000013d0| 6e 6e 69 6e 67 20 6f 66 | 20 61 20 73 65 73 73 69 |nning of| a sessi| |000013e0| 6f 6e 2e 0d 3b 3b 0d 3b | 3b 3b 3b 3b 3b 3b 3b 3b |on..;;.;|;;;;;;;;| |000013f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001400| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001410| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001420| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001430| 3b 3b 3b 0d 3b 3b 0d 3b | 3b 20 57 61 72 6e 69 6e |;;;.;;.;|; Warnin| |00001440| 67 73 3a 0d 3b 3b 20 20 | 20 20 20 31 2e 20 49 66 |gs:.;; | 1. If| |00001450| 20 79 6f 75 20 61 72 65 | 20 72 75 6e 6e 69 6e 67 | you are| running| |00001460| 20 4d 43 4c 32 2e 30 62 | 31 70 33 20 6f 72 20 65 | MCL2.0b|1p3 or e| |00001470| 61 72 6c 69 65 72 2c 20 | 79 6f 75 20 6d 75 73 74 |arlier, |you must| |00001480| 20 72 65 6d 6f 76 65 0d | 3b 3b 20 20 20 20 20 20 | remove.|;; | |00001490| 20 20 74 68 65 20 73 65 | 6d 69 2d 63 6f 6c 6f 6e | the se|mi-colon| |000014a0| 73 20 66 72 6f 6d 20 62 | 65 66 6f 72 65 20 74 68 |s from b|efore th| |000014b0| 65 20 28 70 75 73 68 6e | 65 77 20 2e 2e 2e 29 20 |e (pushn|ew ...) | |000014c0| 66 6f 72 6d 20 62 65 6c | 6f 77 2e 0d 0d 3b 3b 28 |form bel|ow...;;(| |000014d0| 70 75 73 68 6e 65 77 20 | 3a 6e 6f 74 2d 6d 63 6c |pushnew |:not-mcl| |000014e0| 2d 66 69 6e 61 6c 20 2a | 66 65 61 74 75 72 65 73 |-final *|features| |000014f0| 2a 29 0d 0d 3b 3b 0d 3b | 3b 20 20 20 20 20 32 2e |*)..;;.;|; 2.| |00001500| 20 54 68 69 73 20 63 6f | 64 65 20 77 69 6c 6c 20 | This co|de will | |00001510| 6f 6e 6c 79 20 77 6f 72 | 6b 20 69 66 20 74 68 65 |only wor|k if the| |00001520| 20 72 65 63 6f 72 64 73 | 20 64 65 66 69 6e 69 74 | records| definit| |00001530| 69 6f 6e 73 20 69 6e 20 | 74 68 65 0d 3b 3b 20 20 |ions in |the.;; | |00001540| 20 20 20 20 20 20 6c 69 | 62 72 61 72 79 3b 69 6e | li|brary;in| |00001550| 74 65 72 66 61 63 65 73 | 3a 70 72 69 6e 74 54 72 |terfaces|:printTr| |00001560| 61 70 73 2e 6c 69 73 70 | 20 61 72 65 20 63 6f 72 |aps.lisp| are cor| |00001570| 72 65 63 74 2e 20 0d 3b | 3b 20 20 20 20 20 20 20 |rect. .;|; | |00001580| 20 53 65 65 20 74 68 65 | 20 6e 6f 74 65 20 62 65 | See the| note be| |00001590| 6c 6f 77 2e 0d 3b 3b 0d | 3b 3b 20 20 20 20 20 33 |low..;;.|;; 3| |000015a0| 2e 20 54 68 65 20 63 6f | 64 65 20 68 61 73 20 62 |. The co|de has b| |000015b0| 65 65 6e 20 74 65 73 74 | 65 64 20 77 69 74 68 20 |een test|ed with | |000015c0| 4c 61 73 65 72 57 72 69 | 74 65 72 73 20 62 75 74 |LaserWri|ters but| |000015d0| 20 68 61 73 20 6e 6f 74 | 0d 3b 3b 20 20 20 20 20 | has not|.;; | |000015e0| 20 20 20 62 65 65 6e 20 | 74 65 73 74 65 64 20 77 | been |tested w| |000015f0| 69 74 68 20 49 6d 61 67 | 65 57 72 69 74 65 72 73 |ith Imag|eWriters| |00001600| 2c 20 53 74 79 6c 65 57 | 72 69 74 65 72 73 20 65 |, StyleW|riters e| |00001610| 74 63 2e 20 54 68 65 20 | 72 6f 75 74 69 6e 65 73 |tc. The |routines| |00001620| 0d 3b 3b 20 20 20 20 20 | 20 20 20 75 73 65 20 73 |.;; | use s| |00001630| 74 61 6e 64 61 72 64 20 | 71 75 69 63 6b 64 72 61 |tandard |quickdra| |00001640| 77 20 63 61 6c 6c 73 2e | 0d 3b 3b 0d 3b 3b 20 20 |w calls.|.;;.;; | |00001650| 20 20 20 34 2e 20 54 68 | 69 73 20 63 6f 64 65 20 | 4. Th|is code | |00001660| 63 68 61 6e 67 65 73 20 | 74 68 65 20 46 69 6c 65 |changes |the File| |00001670| 20 6d 65 6e 75 2d 69 74 | 65 6d 73 20 66 6f 72 20 | menu-it|ems for | |00001680| 50 61 67 65 20 53 65 74 | 75 70 20 61 6e 64 20 50 |Page Set|up and P| |00001690| 72 69 6e 74 2e 0d 3b 3b | 20 20 20 20 20 20 20 20 |rint..;;| | |000016a0| 54 68 65 20 50 61 67 65 | 20 53 65 74 75 70 20 6d |The Page| Setup m| |000016b0| 65 6e 75 20 69 74 65 6d | 20 69 73 20 63 68 61 6e |enu item| is chan| |000016c0| 67 65 64 20 74 6f 20 61 | 20 77 69 6e 64 6f 77 2d |ged to a| window-| |000016d0| 6d 65 6e 75 2d 69 74 65 | 6d 20 61 6e 64 0d 3b 3b |menu-ite|m and.;;| |000016e0| 20 20 20 20 20 20 20 20 | 74 68 65 20 61 73 73 6f | |the asso| |000016f0| 63 69 61 74 65 64 20 6d | 65 6e 75 2d 69 74 65 6d |ciated m|enu-item| |00001700| 20 61 63 74 69 6f 6e 20 | 69 73 20 23 27 63 63 6c | action |is #'ccl| |00001710| 3a 3a 70 61 67 65 2d 73 | 65 74 75 70 2e 20 0d 3b |::page-s|etup. .;| |00001720| 3b 20 20 20 20 20 20 20 | 20 43 68 61 6e 67 69 6e |; | Changin| |00001730| 67 20 74 68 65 20 70 61 | 67 65 20 73 65 74 75 70 |g the pa|ge setup| |00001740| 20 66 6f 72 20 61 20 77 | 69 6e 64 6f 77 20 64 6f | for a w|indow do| |00001750| 65 73 20 6e 6f 74 20 61 | 66 66 65 63 74 0d 3b 3b |es not a|ffect.;;| |00001760| 20 20 20 20 20 20 20 20 | 6f 74 68 65 72 20 77 69 | |other wi| |00001770| 6e 64 6f 77 73 2e 0d 3b | 3b 20 20 20 20 20 20 20 |ndows..;|; | |00001780| 20 0d 3b 3b 20 20 20 20 | 20 35 2e 20 50 72 69 6e | .;; | 5. Prin| |00001790| 74 69 6e 67 20 63 61 6e | 20 6f 6e 6c 79 20 62 65 |ting can| only be| |000017a0| 20 63 61 6e 63 65 6c 6c | 65 64 20 62 79 20 70 72 | cancell|ed by pr| |000017b0| 65 73 73 69 6e 67 20 43 | 6f 6d 6d 61 6e 64 2d 70 |essing C|ommand-p| |000017c0| 65 72 69 6f 64 2e 0d 3b | 3b 20 20 20 20 20 20 20 |eriod..;|; | |000017d0| 20 50 72 69 6e 74 69 6e | 67 20 63 61 6e 6e 6f 74 | Printin|g cannot| |000017e0| 20 62 65 20 73 74 6f 70 | 70 65 64 20 77 68 69 6c | be stop|ped whil| |000017f0| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 61 |e the cu|rrent pa| |00001800| 67 65 20 69 73 20 62 65 | 69 6e 67 0d 3b 3b 20 20 |ge is be|ing.;; | |00001810| 20 20 20 20 20 20 70 72 | 69 6e 74 65 64 2e 20 62 | pr|inted. b| |00001820| 75 74 20 77 69 6c 6c 20 | 62 65 20 73 74 6f 70 70 |ut will |be stopp| |00001830| 65 64 20 62 65 66 6f 72 | 65 20 70 72 69 6e 74 69 |ed befor|e printi| |00001840| 6e 67 20 74 68 65 20 6e | 65 78 74 20 70 61 67 65 |ng the n|ext page| |00001850| 2e 0d 3b 3b 20 20 0d 3b | 3b 20 20 20 20 20 36 2e |..;; .;|; 6.| |00001860| 20 44 75 65 20 74 6f 20 | 61 20 62 75 67 20 69 6e | Due to |a bug in| |00001870| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 69 6e | backgro|und prin| |00001880| 74 69 6e 67 2c 20 77 65 | 20 63 61 6e 6e 6f 74 20 |ting, we| cannot | |00001890| 64 69 73 70 6c 61 79 20 | 74 68 65 0d 3b 3b 20 20 |display |the.;; | |000018a0| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 20 70 61 | cu|rrent pa| |000018b0| 67 65 20 62 65 69 6e 67 | 20 70 72 69 6e 74 65 64 |ge being| printed| |000018c0| 20 75 6e 64 65 72 20 63 | 65 72 74 61 69 6e 20 63 | under c|ertain c| |000018d0| 6f 6e 64 69 74 69 6f 6e | 73 2e 0d 3b 3b 20 20 20 |ondition|s..;; | |000018e0| 20 20 20 20 20 57 68 65 | 6e 20 74 68 65 20 70 72 | Whe|n the pr| |000018f0| 69 6e 74 20 6d 6f 6e 69 | 74 6f 72 20 69 73 20 64 |int moni|tor is d| |00001900| 69 73 70 6c 61 79 69 6e | 67 20 74 68 65 20 73 74 |isplayin|g the st| |00001910| 61 74 75 73 20 6f 66 20 | 70 72 69 6e 74 69 6e 67 |atus of |printing| |00001920| 0d 3b 3b 20 20 20 20 20 | 20 20 20 28 77 69 74 68 |.;; | (with| |00001930| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 69 6e | backgro|und prin| |00001940| 74 69 6e 67 20 6f 66 66 | 29 2c 20 28 65 76 65 6e |ting off|), (even| |00001950| 74 2d 64 69 73 70 61 74 | 63 68 29 20 64 6f 65 73 |t-dispat|ch) does| |00001960| 20 6e 6f 74 20 72 65 74 | 75 72 6e 2e 0d 3b 3b 20 | not ret|urn..;; | |00001970| 20 20 20 20 20 20 20 41 | 73 20 61 20 72 65 73 75 | A|s a resu| |00001980| 6c 74 2c 20 74 68 65 20 | 70 72 69 6e 74 20 70 72 |lt, the |print pr| |00001990| 6f 67 72 65 73 73 20 64 | 69 61 6c 6f 67 20 62 6f |ogress d|ialog bo| |000019a0| 78 20 64 6f 65 73 20 6e | 6f 74 20 69 6e 64 69 63 |x does n|ot indic| |000019b0| 61 74 65 20 74 68 65 0d | 3b 3b 20 20 20 20 20 20 |ate the.|;; | |000019c0| 20 20 70 61 67 65 20 6e | 75 6d 62 65 72 20 6f 66 | page n|umber of| |000019d0| 20 74 68 65 20 70 61 67 | 65 20 62 65 69 6e 67 20 | the pag|e being | |000019e0| 70 72 69 6e 74 65 64 2e | 0d 3b 3b 0d 3b 3b 20 20 |printed.|.;;.;; | |000019f0| 20 20 20 37 2e 20 54 68 | 65 20 69 6e 74 65 72 6e | 7. Th|e intern| |00001a00| 61 6c 20 63 6f 64 65 20 | 66 6f 72 20 70 72 69 6e |al code |for prin| |00001a10| 74 69 6e 67 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |ting a d|ocument | |00001a20| 72 75 6e 73 20 77 69 74 | 68 6f 75 74 20 69 6e 74 |runs wit|hout int| |00001a30| 65 72 72 75 70 74 73 0d | 3b 3b 20 20 20 20 20 20 |errupts.|;; | |00001a40| 20 20 77 69 74 68 20 74 | 68 65 20 72 65 73 75 6c | with t|he resul| |00001a50| 74 20 74 68 61 74 20 6e | 6f 20 6f 74 68 65 72 20 |t that n|o other | |00001a60| 77 6f 72 6b 20 63 61 6e | 20 70 72 6f 63 65 65 64 |work can| proceed| |00001a70| 20 75 6e 74 69 6c 20 65 | 69 74 68 65 72 0d 3b 3b | until e|ither.;;| |00001a80| 20 20 20 20 20 20 20 20 | 74 68 65 20 68 61 72 64 | |the hard| |00001a90| 63 6f 70 79 20 72 6f 75 | 74 69 6e 65 20 72 65 74 |copy rou|tine ret| |00001aa0| 75 72 6e 73 20 28 6f 72 | 20 61 62 6f 72 74 73 29 |urns (or| aborts)| |00001ab0| 20 6f 72 20 69 73 20 63 | 61 6e 63 65 6c 6c 65 64 | or is c|ancelled| |00001ac0| 20 62 79 0d 3b 3b 20 20 | 20 20 20 20 20 20 70 72 | by.;; | pr| |00001ad0| 65 73 73 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 2d 70 |essing c|ommand-p| |00001ae0| 65 72 69 6f 64 2e 0d 3b | 3b 0d 3b 3b 20 20 20 20 |eriod..;|;.;; | |00001af0| 20 38 2e 20 49 66 20 79 | 6f 75 20 61 72 65 20 75 | 8. If y|ou are u| |00001b00| 73 69 6e 67 20 6f 6f 64 | 6c 65 73 2d 6f 66 2d 75 |sing ood|les-of-u| |00001b10| 74 69 6c 73 20 28 74 68 | 65 20 6f 6f 75 3a 20 70 |tils (th|e oou: p| |00001b20| 61 63 6b 61 67 65 29 2c | 20 61 6e 64 20 68 61 76 |ackage),| and hav| |00001b30| 65 0d 3b 3b 20 20 20 20 | 20 20 20 20 6c 6f 61 64 |e.;; | load| |00001b40| 65 64 20 71 75 69 63 6b | 64 72 61 77 2d 75 2c 20 |ed quick|draw-u, | |00001b50| 70 72 69 6e 74 2d 75 20 | 72 65 64 65 66 69 6e 65 |print-u |redefine| |00001b60| 73 20 74 68 65 20 77 69 | 74 68 2d 70 65 6e 2d 73 |s the wi|th-pen-s| |00001b70| 74 61 74 65 20 61 6e 64 | 0d 3b 3b 20 20 20 20 20 |tate and|.;; | |00001b80| 20 20 20 77 69 74 68 2d | 66 6f 6e 74 2d 73 70 65 | with-|font-spe| |00001b90| 63 20 6d 61 63 72 6f 73 | 0d 3b 3b 20 20 20 20 20 |c macros|.;; | |00001ba0| 20 20 20 20 0d 3b 3b 0d | 3b 3b 20 20 53 69 78 20 | .;;.|;; Six | |00001bb0| 65 78 61 6d 70 6c 65 73 | 20 6f 66 20 75 73 69 6e |examples| of usin| |00001bc0| 67 20 74 68 65 20 70 61 | 63 6b 61 67 65 20 61 72 |g the pa|ckage ar| |00001bd0| 65 20 69 6e 63 6c 75 64 | 65 64 20 61 74 20 74 68 |e includ|ed at th| |00001be0| 65 20 65 6e 64 20 6f 66 | 20 74 68 69 73 20 66 69 |e end of| this fi| |00001bf0| 6c 65 3a 0d 3b 3b 20 20 | 20 20 66 6f 75 72 20 70 |le:.;; | four p| |00001c00| 72 69 6e 74 69 6e 67 20 | 65 78 61 6d 70 6c 65 73 |rinting |examples| |00001c10| 2c 20 66 6f 72 20 70 72 | 69 6e 74 69 6e 67 20 76 |, for pr|inting v| |00001c20| 61 72 69 6f 75 73 20 6f | 62 6a 65 63 74 73 3a 0d |arious o|bjects:.| |00001c30| 3b 3b 20 20 20 20 2d 20 | 61 20 73 6d 61 6c 6c 20 |;; - |a small | |00001c40| 77 69 6e 64 6f 77 0d 3b | 3b 20 20 20 20 2d 20 61 |window.;|; - a| |00001c50| 20 70 69 63 74 75 72 65 | 0d 3b 3b 20 20 20 20 2d | picture|.;; -| |00001c60| 20 61 20 6c 61 72 67 65 | 20 77 69 6e 64 6f 77 0d | a large| window.| |00001c70| 3b 3b 20 20 20 20 2d 20 | 61 20 67 65 6e 65 72 61 |;; - |a genera| |00001c80| 6c 20 64 6f 63 75 6d 65 | 6e 74 0d 3b 3b 20 20 20 |l docume|nt.;; | |00001c90| 20 61 6e 64 20 74 77 6f | 20 65 78 61 6d 70 6c 65 | and two| example| |00001ca0| 73 20 6f 66 20 75 73 69 | 6e 67 20 70 72 69 76 61 |s of usi|ng priva| |00001cb0| 74 65 20 70 72 69 6e 74 | 20 72 65 63 6f 72 64 73 |te print| records| |00001cc0| 0d 3b 3b 20 20 20 20 2d | 20 63 72 65 61 74 69 6e |.;; -| creatin| |00001cd0| 67 20 61 20 66 69 6c 65 | 2c 20 63 68 61 6e 67 69 |g a file|, changi| |00001ce0| 6e 67 20 69 74 73 20 70 | 72 69 6e 74 20 72 65 63 |ng its p|rint rec| |00001cf0| 6f 72 64 2c 20 73 61 76 | 69 6e 67 20 69 74 20 61 |ord, sav|ing it a| |00001d00| 6e 64 20 72 65 73 74 6f | 72 69 6e 67 20 69 74 2e |nd resto|ring it.| |00001d10| 0d 3b 3b 20 20 20 20 2d | 20 64 65 76 65 6c 6f 70 |.;; -| develop| |00001d20| 69 6e 67 20 61 20 63 6c | 61 73 73 20 6f 66 20 76 |ing a cl|ass of v| |00001d30| 69 65 77 73 20 74 68 61 | 74 20 73 74 6f 72 65 20 |iews tha|t store | |00001d40| 61 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 20 69 |a print |record i| |00001d50| 6e 20 61 20 73 6c 6f 74 | 0d 3b 3b 0d 3b 3b 3b 3b |n a slot|.;;.;;;;| |00001d60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001d70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001d80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001d90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00001da0| 3b 3b 0d 0d 23 7c 0d 3b | 3b 2d 2d 2d 2d 2d 2d 2d |;;..#|.;|;-------| |00001db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001dc0| 2d 2d 2d 2d 4e 6f 74 65 | 2d 2d 2d 2d 2d 2d 2d 2d |----Note|--------| |00001dd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001de0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 0d 2a |--------|-----..*| |00001df0| 2a 2a 2a 57 61 72 6e 69 | 6e 67 2a 2a 2a 2a 0d 42 |***Warni|ng****.B| |00001e00| 65 66 6f 72 65 20 6c 6f | 61 64 69 6e 67 20 74 68 |efore lo|ading th| |00001e10| 69 73 20 66 69 6c 65 2c | 20 65 76 61 6c 75 61 74 |is file,| evaluat| |00001e20| 65 0d 20 20 20 20 28 72 | 65 63 6f 72 64 2d 6c 65 |e. (r|ecord-le| |00001e30| 6e 67 74 68 20 3a 54 50 | 72 69 6e 74 29 0d 54 68 |ngth :TP|rint).Th| |00001e40| 69 73 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |is shoul|d return| |00001e50| 20 31 32 30 2e 0d 0d 49 | 66 20 74 68 65 20 72 65 | 120...I|f the re| |00001e60| 63 6f 72 64 2d 6c 65 6e | 67 74 68 20 69 73 20 6e |cord-len|gth is n| |00001e70| 6f 74 20 31 32 30 2c 20 | 74 68 65 20 74 70 72 73 |ot 120, |the tprs| |00001e80| 74 6c 20 61 6e 64 20 74 | 70 72 78 69 6e 66 6f 20 |tl and t|prxinfo | |00001e90| 72 65 63 6f 72 64 73 20 | 0d 69 6e 20 74 68 65 20 |records |.in the | |00001ea0| 66 69 6c 65 20 70 72 69 | 6e 74 54 72 61 70 73 2e |file pri|ntTraps.| |00001eb0| 6c 69 73 70 20 69 6e 20 | 69 6e 74 65 72 66 61 63 |lisp in |interfac| |00001ec0| 65 73 20 66 6f 6c 64 65 | 72 20 69 6e 20 74 68 65 |es folde|r in the| |00001ed0| 20 6c 69 62 72 61 72 79 | 0d 66 6f 6c 64 65 72 20 | library|.folder | |00001ee0| 6d 75 73 74 20 62 65 20 | 72 65 70 6c 61 63 65 64 |must be |replaced| |00001ef0| 20 62 79 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | by the |followin| |00001f00| 67 3a 20 0d 0d 28 64 65 | 66 72 65 63 6f 72 64 20 |g: ..(de|frecord | |00001f10| 74 70 72 73 74 6c 0d 20 | 20 28 77 64 65 76 20 3a |tprstl. | (wdev :| |00001f20| 73 69 67 6e 65 64 2d 69 | 6e 74 65 67 65 72 29 0d |signed-i|nteger).| |00001f30| 20 20 28 69 70 61 67 65 | 76 20 3a 73 69 67 6e 65 | (ipage|v :signe| |00001f40| 64 2d 69 6e 74 65 67 65 | 72 29 0d 20 20 28 69 70 |d-intege|r). (ip| |00001f50| 61 67 65 68 20 3a 73 69 | 67 6e 65 64 2d 69 6e 74 |ageh :si|gned-int| |00001f60| 65 67 65 72 29 0d 20 20 | 28 62 70 6f 72 74 20 3a |eger). |(bport :| |00001f70| 73 69 67 6e 65 64 2d 62 | 79 74 65 29 0d 20 20 28 |signed-b|yte). (| |00001f80| 66 65 65 64 20 3a 75 6e | 73 69 67 6e 65 64 2d 62 |feed :un|signed-b| |00001f90| 79 74 65 29 29 0d 0d 28 | 64 65 66 72 65 63 6f 72 |yte))..(|defrecor| |00001fa0| 64 20 74 70 72 78 69 6e | 66 6f 0d 20 20 28 69 72 |d tprxin|fo. (ir| |00001fb0| 6f 77 62 79 74 65 73 20 | 3a 73 69 67 6e 65 64 2d |owbytes |:signed-| |00001fc0| 69 6e 74 65 67 65 72 29 | 0d 20 20 28 69 62 61 6e |integer)|. (iban| |00001fd0| 64 76 20 3a 73 69 67 6e | 65 64 2d 69 6e 74 65 67 |dv :sign|ed-integ| |00001fe0| 65 72 29 0d 20 20 28 69 | 62 61 6e 64 68 20 3a 73 |er). (i|bandh :s| |00001ff0| 69 67 6e 65 64 2d 69 6e | 74 65 67 65 72 29 0d 20 |igned-in|teger). | |00002000| 20 28 69 64 65 76 62 79 | 74 65 73 20 3a 73 69 67 | (idevby|tes :sig| |00002010| 6e 65 64 2d 69 6e 74 65 | 67 65 72 29 0d 20 20 28 |ned-inte|ger). (| |00002020| 69 62 61 6e 64 73 20 3a | 73 69 67 6e 65 64 2d 69 |ibands :|signed-i| |00002030| 6e 74 65 67 65 72 29 0d | 20 20 28 62 70 61 74 73 |nteger).| (bpats| |00002040| 63 61 6c 65 20 3a 73 69 | 67 6e 65 64 2d 62 79 74 |cale :si|gned-byt| |00002050| 65 29 0d 20 20 28 62 75 | 6c 74 68 69 63 6b 20 3a |e). (bu|lthick :| |00002060| 73 69 67 6e 65 64 2d 62 | 79 74 65 29 0d 20 20 28 |signed-b|yte). (| |00002070| 62 75 6c 6f 66 66 73 65 | 74 20 3a 73 69 67 6e 65 |buloffse|t :signe| |00002080| 64 2d 62 79 74 65 29 0d | 20 20 28 62 75 6c 73 68 |d-byte).| (bulsh| |00002090| 61 64 6f 77 20 3a 73 69 | 67 6e 65 64 2d 62 79 74 |adow :si|gned-byt| |000020a0| 65 29 0d 20 20 28 73 63 | 61 6e 20 3a 75 6e 73 69 |e). (sc|an :unsi| |000020b0| 67 6e 65 64 2d 62 79 74 | 65 29 0d 20 20 28 62 78 |gned-byt|e). (bx| |000020c0| 69 6e 66 6f 78 20 3a 73 | 69 67 6e 65 64 2d 62 79 |infox :s|igned-by| |000020d0| 74 65 29 29 0d 0d 50 65 | 72 66 6f 72 6d 20 74 68 |te))..Pe|rform th| |000020e0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 74 65 70 |e follow|ing step| |000020f0| 73 20 74 6f 20 75 70 64 | 61 74 65 20 74 68 65 20 |s to upd|ate the | |00002100| 72 65 63 6f 72 64 20 64 | 65 66 69 6e 69 74 69 6f |record d|efinitio| |00002110| 6e 73 3a 0d 31 2e 20 52 | 65 70 6c 61 63 65 20 74 |ns:.1. R|eplace t| |00002120| 68 65 20 72 65 63 6f 72 | 64 20 64 65 66 69 6e 69 |he recor|d defini| |00002130| 74 69 6f 6e 73 20 69 6e | 20 74 68 65 20 73 6f 75 |tions in| the sou| |00002140| 72 63 65 20 66 69 6c 65 | 0d 20 20 20 6c 69 62 72 |rce file|. libr| |00002150| 61 72 79 3b 69 6e 74 65 | 72 66 61 63 65 73 3a 70 |ary;inte|rfaces:p| |00002160| 72 69 6e 74 54 72 61 70 | 73 2e 6c 69 73 70 20 77 |rintTrap|s.lisp w| |00002170| 69 74 68 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |ith the |definiti| |00002180| 6f 6e 73 20 61 62 6f 76 | 65 2e 20 0d 32 2e 20 45 |ons abov|e. .2. E| |00002190| 76 61 6c 75 61 74 65 20 | 74 68 65 20 66 6f 6c 6c |valuate |the foll| |000021a0| 6f 77 69 6e 67 20 65 78 | 70 72 65 73 73 69 6f 6e |owing ex|pression| |000021b0| 20 74 6f 20 72 65 62 75 | 69 6c 64 20 74 68 65 20 | to rebu|ild the | |000021c0| 69 6e 64 65 78 20 66 69 | 6c 65 73 0d 20 20 20 28 |index fi|les. (| |000021d0| 63 63 6c 3a 3a 72 65 69 | 6e 64 65 78 2d 69 6e 74 |ccl::rei|ndex-int| |000021e0| 65 72 66 61 63 65 73 29 | 0d 20 20 20 59 6f 75 20 |erfaces)|. You | |000021f0| 77 69 6c 6c 20 6e 6f 77 | 20 62 65 20 61 62 6c 65 |will now| be able| |00002200| 20 74 6f 20 61 63 63 65 | 73 73 20 74 68 65 20 6e | to acce|ss the n| |00002210| 65 77 20 72 65 63 6f 72 | 64 20 64 65 66 69 6e 69 |ew recor|d defini| |00002220| 74 69 6f 6e 73 2e 0d 33 | 2e 20 51 75 69 74 20 66 |tions..3|. Quit f| |00002230| 72 6f 6d 20 4d 43 4c 2e | 20 54 6f 20 66 72 65 65 |rom MCL.| To free| |00002240| 20 75 70 20 74 68 65 20 | 63 6f 6e 73 20 73 70 61 | up the |cons spa| |00002250| 63 65 2e 0d 34 2e 20 53 | 74 61 72 74 75 70 20 4d |ce..4. S|tartup M| |00002260| 43 4c 20 61 67 61 69 6e | 2e 0d 0d 2d 2d 2d 2d 2d |CL again|...-----| |00002270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00002280| 2d 45 78 70 6f 72 74 65 | 64 20 72 6f 75 74 69 6e |-Exporte|d routin| |00002290| 65 73 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |es------|--------| |000022a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 54 68 65 20 |--------|--..The | |000022b0| 66 6f 6c 6c 6f 77 69 6e | 67 20 65 78 70 6f 72 74 |followin|g export| |000022c0| 65 64 20 72 6f 75 74 69 | 6e 65 73 20 61 6c 6c 6f |ed routi|nes allo| |000022d0| 77 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 63 68 |w the us|er to ch| |000022e0| 61 6e 67 65 20 74 68 65 | 20 0d 70 72 69 6e 74 20 |ange the| .print | |000022f0| 73 74 79 6c 65 20 66 6f | 72 20 77 69 6e 64 6f 77 |style fo|r window| |00002300| 73 2e 20 43 68 61 6e 67 | 69 6e 67 20 61 20 70 72 |s. Chang|ing a pr| |00002310| 69 6e 74 20 73 74 79 6c | 65 20 6f 6e 6c 79 20 61 |int styl|e only a| |00002320| 66 66 65 63 74 73 20 74 | 68 65 0d 63 75 72 72 65 |ffects t|he.curre| |00002330| 6e 74 20 73 65 73 73 69 | 6f 6e 2e 20 54 68 65 20 |nt sessi|on. The | |00002340| 70 72 69 6e 74 20 73 74 | 79 6c 65 73 20 61 72 65 |print st|yles are| |00002350| 20 72 65 73 65 74 20 75 | 70 6f 6e 20 72 65 2d 65 | reset u|pon re-e| |00002360| 6e 74 65 72 69 6e 67 20 | 4d 43 4c 0d 61 6e 64 20 |ntering |MCL.and | |00002370| 61 72 65 20 6e 6f 74 20 | 73 74 6f 72 65 64 20 77 |are not |stored w| |00002380| 69 74 68 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |ith the |document| |00002390| 2e 20 43 68 61 6e 67 69 | 6e 67 20 74 68 65 20 73 |. Changi|ng the s| |000023a0| 74 79 6c 65 20 66 6f 72 | 20 0d 61 20 66 72 65 64 |tyle for| .a fred| |000023b0| 20 77 69 6e 64 6f 77 20 | 6f 6e 6c 79 20 63 68 61 | window |only cha| |000023c0| 6e 67 65 73 20 74 68 65 | 20 73 74 79 6c 65 20 6f |nges the| style o| |000023d0| 66 20 61 6c 6c 20 66 72 | 65 64 20 77 69 6e 64 6f |f all fr|ed windo| |000023e0| 77 73 20 64 75 72 69 6e | 67 0d 74 68 65 20 73 65 |ws durin|g.the se| |000023f0| 73 73 69 6f 6e 2e 20 53 | 69 6d 69 6c 61 72 6c 79 |ssion. S|imilarly| |00002400| 20 63 68 61 6e 67 69 6e | 67 20 74 68 65 20 73 74 | changin|g the st| |00002410| 79 6c 65 20 6f 66 20 61 | 20 6e 6f 6e 2d 66 72 65 |yle of a| non-fre| |00002420| 64 20 77 69 6e 64 6f 77 | 20 0d 6f 6e 6c 79 20 63 |d window| .only c| |00002430| 68 61 6e 67 65 73 20 74 | 68 65 20 73 74 79 6c 65 |hanges t|he style| |00002440| 73 20 66 6f 72 20 61 6c | 6c 20 66 72 65 64 20 77 |s for al|l fred w| |00002450| 69 6e 64 6f 77 73 2e 0d | 0d 70 61 67 65 2d 73 65 |indows..|.page-se| |00002460| 74 75 70 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tup | | |00002470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002480| 20 3b 20 6d 65 74 68 6f | 64 0d 43 68 61 6e 67 65 | ; metho|d.Change| |00002490| 73 20 74 68 65 20 70 72 | 69 6e 74 20 73 74 79 6c |s the pr|int styl| |000024a0| 65 20 66 6f 72 20 61 20 | 77 69 6e 64 6f 77 2e 0d |e for a |window..| |000024b0| 0d 28 70 61 67 65 2d 73 | 65 74 75 70 20 66 72 65 |.(page-s|etup fre| |000024c0| 64 2d 77 69 6e 64 6f 77 | 29 0d 53 61 6d 65 20 61 |d-window|).Same a| |000024d0| 73 20 73 65 6c 65 63 74 | 69 6e 67 20 74 68 65 20 |s select|ing the | |000024e0| 66 69 6c 65 20 50 61 67 | 65 20 53 65 74 75 70 20 |file Pag|e Setup | |000024f0| 6d 65 6e 75 20 69 74 65 | 6d 20 66 72 6f 6d 20 74 |menu ite|m from t| |00002500| 68 65 0d 73 74 61 6e 64 | 61 72 64 20 2a 66 69 6c |he.stand|ard *fil| |00002510| 65 2d 6d 65 6e 75 2a 2e | 0d 44 69 73 70 6c 61 79 |e-menu*.|.Display| |00002520| 73 20 74 68 65 20 70 61 | 67 65 20 73 65 74 75 70 |s the pa|ge setup| |00002530| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 61 6e 64 20 | dialog |box and | |00002540| 61 6c 6c 6f 77 73 20 74 | 68 65 20 75 73 65 72 20 |allows t|he user | |00002550| 74 6f 0d 63 68 61 6e 67 | 65 20 74 68 65 20 73 74 |to.chang|e the st| |00002560| 79 6c 65 20 61 74 74 72 | 69 62 75 74 65 73 20 66 |yle attr|ibutes f| |00002570| 6f 72 20 70 72 69 6e 74 | 69 6e 67 20 74 68 65 20 |or print|ing the | |00002580| 77 69 6e 64 6f 77 0d 62 | 75 74 20 64 6f 65 73 20 |window.b|ut does | |00002590| 6e 6f 74 20 61 66 66 65 | 63 74 20 74 68 65 20 73 |not affe|ct the s| |000025a0| 74 79 6c 65 20 66 6f 72 | 20 70 72 69 6e 74 69 6e |tyle for| printin| |000025b0| 67 20 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 73 0d |g other |windows.| |000025c0| 6f 72 20 64 6f 63 75 6d | 65 6e 74 73 2e 0d 0d 28 |or docum|ents...(| |000025d0| 70 61 67 65 2d 73 65 74 | 75 70 20 74 29 0d 44 69 |page-set|up t).Di| |000025e0| 73 70 6c 61 79 73 20 74 | 68 65 20 70 61 67 65 20 |splays t|he page | |000025f0| 73 65 74 75 70 20 64 69 | 61 6c 6f 67 20 62 6f 78 |setup di|alog box| |00002600| 20 61 6e 64 20 61 6c 6c | 6f 77 73 20 74 68 65 20 | and all|ows the | |00002610| 75 73 65 72 20 74 6f 0d | 63 68 61 6e 67 65 20 74 |user to.|change t| |00002620| 68 65 20 73 74 79 6c 65 | 20 61 74 74 72 69 62 75 |he style| attribu| |00002630| 74 65 73 20 66 6f 72 20 | 61 6c 6c 20 69 74 65 6d |tes for |all item| |00002640| 73 20 74 68 61 74 20 64 | 6f 20 6e 6f 74 20 68 61 |s that d|o not ha| |00002650| 76 65 0d 70 72 69 76 61 | 74 65 20 70 72 69 6e 74 |ve.priva|te print| |00002660| 20 72 65 63 6f 72 64 73 | 2e 0d 0d 70 61 67 65 2d | records|...page-| |00002670| 73 69 7a 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |size | | |00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002690| 20 20 3b 20 6d 65 74 68 | 6f 64 0d 52 65 74 75 72 | ; meth|od.Retur| |000026a0| 6e 73 20 61 20 70 6f 69 | 6e 74 20 69 6e 64 69 63 |ns a poi|nt indic| |000026b0| 61 74 69 6e 67 20 74 68 | 65 20 70 61 67 65 20 73 |ating th|e page s| |000026c0| 69 7a 65 20 75 73 65 64 | 20 66 6f 72 20 70 72 69 |ize used| for pri| |000026d0| 6e 74 69 6e 67 0d 66 72 | 65 64 20 6f 72 20 6e 6f |nting.fr|ed or no| |000026e0| 6e 2d 66 72 65 64 20 77 | 69 6e 64 6f 77 73 2e 20 |n-fred w|indows. | |000026f0| 54 68 65 20 70 61 67 65 | 2d 73 69 7a 65 20 66 6f |The page|-size fo| |00002700| 72 20 61 20 66 72 65 64 | 20 77 69 6e 64 6f 77 20 |r a fred| window | |00002710| 0d 6d 61 79 20 62 65 20 | 64 69 66 66 65 72 65 6e |.may be |differen| |00002720| 74 20 66 72 6f 6d 20 74 | 68 61 74 20 6f 66 20 61 |t from t|hat of a| |00002730| 20 6e 6f 6e 2d 66 72 65 | 64 20 77 69 6e 64 6f 77 | non-fre|d window| |00002740| 2e 0d 0d 28 70 61 67 65 | 2d 73 69 7a 65 20 66 72 |...(page|-size fr| |00002750| 65 64 2d 77 69 6e 64 6f | 77 29 0d 28 70 61 67 65 |ed-windo|w).(page| |00002760| 2d 73 69 7a 65 20 74 29 | 0d 0d 54 68 65 20 66 6f |-size t)|..The fo| |00002770| 6c 6c 6f 77 69 6e 67 20 | 65 78 70 6f 72 74 65 64 |llowing |exported| |00002780| 20 72 6f 75 74 69 6e 65 | 73 20 64 69 72 65 63 74 | routine|s direct| |00002790| 20 6f 75 74 70 75 74 20 | 74 6f 20 61 20 70 72 69 | output |to a pri| |000027a0| 6e 74 65 72 20 6f 72 0d | 74 6f 20 61 20 50 6f 73 |nter or.|to a Pos| |000027b0| 74 53 63 72 69 70 74 20 | 66 69 6c 65 2e 0d 0d 70 |tScript |file...p| |000027c0| 69 63 74 75 72 65 2d 68 | 61 72 64 63 6f 70 79 20 |icture-h|ardcopy | |000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000027e0| 20 20 20 20 20 20 20 3b | 20 66 75 6e 63 74 69 6f | ;| functio| |000027f0| 6e 0d 70 69 63 74 75 72 | 65 2d 68 61 72 64 63 6f |n.pictur|e-hardco| |00002800| 70 79 20 70 69 63 74 75 | 72 65 20 26 6f 70 74 69 |py pictu|re &opti| |00002810| 6f 6e 61 6c 20 73 68 6f | 77 2d 64 69 61 6c 6f 67 |onal sho|w-dialog| |00002820| 3f 0d 20 20 44 69 72 65 | 63 74 73 20 74 68 65 20 |?. Dire|cts the | |00002830| 71 75 69 63 6b 64 72 61 | 77 20 70 69 63 74 75 72 |quickdra|w pictur| |00002840| 65 20 74 6f 20 74 68 65 | 20 70 72 69 6e 74 65 72 |e to the| printer| |00002850| 0d 20 20 20 20 70 69 63 | 74 75 72 65 20 20 20 20 |. pic|ture | |00002860| 20 20 20 61 20 70 69 63 | 74 75 72 65 0d 20 20 20 | a pic|ture. | |00002870| 20 73 68 6f 77 2d 64 69 | 61 6c 6f 67 3f 20 20 69 | show-di|alog? i| |00002880| 67 6e 6f 72 65 64 0d 0d | 20 20 20 49 66 20 6e 6f |gnored..| If no| |00002890| 20 70 72 69 6e 74 65 72 | 20 65 72 72 6f 72 73 20 | printer| errors | |000028a0| 6f 63 63 75 72 72 65 64 | 20 61 6e 64 20 74 68 65 |occurred| and the| |000028b0| 20 75 73 65 72 20 64 69 | 64 20 6e 6f 74 20 63 61 | user di|d not ca| |000028c0| 6e 63 65 6c 0d 20 20 20 | 20 20 20 72 65 74 75 72 |ncel. | retur| |000028d0| 6e 73 20 6e 69 6c 0d 20 | 20 20 6f 74 68 65 72 77 |ns nil. | otherw| |000028e0| 69 73 65 20 0d 20 20 20 | 20 20 20 72 65 74 75 72 |ise . | retur| |000028f0| 6e 73 20 74 68 65 20 6e | 6f 6e 2d 7a 65 72 6f 20 |ns the n|on-zero | |00002900| 70 72 69 6e 74 20 65 72 | 72 6f 72 20 63 6f 64 65 |print er|ror code| |00002910| 20 77 68 69 63 68 20 63 | 61 75 73 65 64 20 74 68 | which c|aused th| |00002920| 65 20 74 65 72 6d 69 6e | 61 74 69 6f 6e 0d 0d 70 |e termin|ation..p| |00002930| 72 69 6e 74 2d 63 6f 6e | 74 65 6e 74 73 20 20 20 |rint-con|tents | |00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002950| 20 20 20 20 20 20 20 3b | 20 6d 65 74 68 6f 64 0d | ;| method.| |00002960| 70 72 69 6e 74 2d 63 6f | 6e 74 65 6e 74 73 20 76 |print-co|ntents v| |00002970| 69 65 77 20 26 6f 70 74 | 69 6f 6e 61 6c 20 28 6f |iew &opt|ional (o| |00002980| 66 66 73 65 74 20 23 40 | 28 30 20 30 29 29 0d 45 |ffset #@|(0 0)).E| |00002990| 78 65 63 75 74 65 73 20 | 74 68 65 20 71 75 69 63 |xecutes |the quic| |000029a0| 6b 64 72 61 77 20 63 6f | 6d 6d 61 6e 64 73 20 66 |kdraw co|mmands f| |000029b0| 6f 72 20 64 72 61 77 69 | 6e 67 20 74 68 65 20 63 |or drawi|ng the c| |000029c0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 61 20 76 69 65 |ontents |of a vie| |000029d0| 77 2e 0d 0d 57 68 65 6e | 20 6f 66 66 73 65 74 20 |w...When| offset | |000029e0| 69 73 20 23 40 28 30 20 | 30 29 2c 20 75 73 65 73 |is #@(0 |0), uses| |000029f0| 20 6c 6f 63 61 6c 20 63 | 6f 6f 72 64 69 6e 61 74 | local c|oordinat| |00002a00| 65 73 20 66 6f 72 20 64 | 72 61 77 69 6e 67 2c 0d |es for d|rawing,.| |00002a10| 6f 74 68 65 72 77 69 73 | 65 20 61 64 6a 75 73 74 |otherwis|e adjust| |00002a20| 73 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 62 79 |s coordi|nates by| |00002a30| 20 73 75 62 74 72 61 63 | 74 69 6e 67 20 6f 66 66 | subtrac|ting off| |00002a40| 73 65 74 20 66 72 6f 6d | 20 63 6f 6f 72 64 69 6e |set from| coordin| |00002a50| 61 74 65 73 2e 0d 0d 50 | 72 69 6e 74 2d 63 6f 6e |ates...P|rint-con| |00002a60| 74 65 6e 74 73 20 73 75 | 70 70 6f 72 74 73 20 74 |tents su|pports t| |00002a70| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 79 70 |he follo|wing typ| |00002a80| 65 73 20 6f 66 20 76 69 | 65 77 73 3a 0d 20 20 20 |es of vi|ews:. | |00002a90| 20 77 69 6e 64 6f 77 20 | 20 20 20 20 20 20 20 20 | window | | |00002aa0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 20 64 72 61 | | - dra| |00002ab0| 77 73 20 61 20 62 6f 78 | 20 61 72 6f 75 6e 64 20 |ws a box| around | |00002ac0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 20 61 72 65 61 |the cont|ent area| |00002ad0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00002ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002af0| 20 6f 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 61 | of the |window a| |00002b00| 6e 64 20 70 72 69 6e 74 | 73 20 74 68 65 20 63 6f |nd print|s the co| |00002b10| 6e 74 65 6e 74 73 0d 20 | 20 20 20 20 20 20 20 20 |ntents. | | |00002b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002b30| 20 20 20 20 20 20 20 6f | 66 20 74 68 65 20 73 75 | o|f the su| |00002b40| 62 76 69 65 77 73 2e 0d | 0d 20 20 20 20 73 74 61 |bviews..|. sta| |00002b50| 74 69 63 2d 74 65 78 74 | 2d 64 69 61 6c 6f 67 2d |tic-text|-dialog-| |00002b60| 69 74 65 6d 20 20 20 2d | 20 64 72 61 77 73 20 61 |item -| draws a| |00002b70| 20 62 6f 78 20 61 72 6f | 75 6e 64 20 74 68 65 20 | box aro|und the | |00002b80| 69 74 65 6d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |item. | | |00002b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002ba0| 20 20 20 20 20 61 6e 64 | 20 70 72 69 6e 74 73 20 | and| prints | |00002bb0| 74 68 65 20 74 65 78 74 | 20 77 69 74 68 20 74 68 |the text| with th| |00002bc0| 65 20 76 69 65 77 20 66 | 6f 6e 74 0d 0d 20 20 20 |e view f|ont.. | |00002bd0| 20 65 64 69 74 61 62 6c | 65 2d 74 65 78 74 2d 64 | editabl|e-text-d| |00002be0| 69 61 6c 6f 67 2d 69 74 | 65 6d 20 2d 20 64 72 61 |ialog-it|em - dra| |00002bf0| 77 73 20 61 20 62 6f 78 | 20 61 72 6f 75 6e 64 20 |ws a box| around | |00002c00| 74 68 65 20 69 74 65 6d | 0d 20 20 20 20 20 20 20 |the item|. | |00002c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002c20| 20 20 20 20 20 20 20 20 | 20 61 6e 64 20 70 72 69 | | and pri| |00002c30| 6e 74 73 20 74 68 65 20 | 74 65 78 74 20 77 69 74 |nts the |text wit| |00002c40| 68 20 74 68 65 20 76 69 | 65 77 20 66 6f 6e 74 0d |h the vi|ew font.| |00002c50| 0d 20 20 20 20 62 75 74 | 74 6f 6e 2d 64 69 61 6c |. but|ton-dial| |00002c60| 6f 67 2d 69 74 65 6d 20 | 20 20 20 20 20 20 20 2d |og-item | -| |00002c70| 20 64 72 61 77 73 20 74 | 68 65 20 62 75 74 74 6f | draws t|he butto| |00002c80| 6e 20 61 6e 64 20 74 68 | 65 20 74 65 78 74 20 77 |n and th|e text w| |00002c90| 69 74 68 69 6e 0d 0d 20 | 20 20 20 76 69 65 77 20 |ithin.. | view | |00002ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002cb0| 20 20 20 20 20 2d 20 70 | 72 69 6e 74 73 20 74 68 | - p|rints th| |00002cc0| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th| |00002cd0| 65 20 73 75 62 76 69 65 | 77 73 0d 0d 20 20 20 20 |e subvie|ws.. | |00002ce0| 73 76 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |sv | | |00002cf0| 20 20 20 20 20 20 20 20 | 20 20 2d 20 64 6f 65 73 | | - does| |00002d00| 20 6e 6f 74 68 69 6e 67 | 0d 0d 67 65 74 2d 70 72 | nothing|..get-pr| |00002d10| 69 6e 74 65 72 2d 65 72 | 72 6f 72 20 20 20 20 20 |inter-er|ror | |00002d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002d30| 20 20 3b 20 66 75 6e 63 | 74 69 6f 6e 0d 28 67 65 | ; func|tion.(ge| |00002d40| 74 2d 70 72 69 6e 74 65 | 72 2d 65 72 72 6f 72 29 |t-printe|r-error)| |00002d50| 0d 65 69 74 68 65 72 20 | 72 65 74 75 72 6e 73 20 |.either |returns | |00002d60| 6e 69 6c 20 6f 72 20 61 | 20 70 72 69 6e 74 65 72 |nil or a| printer| |00002d70| 2d 63 6f 6e 64 69 74 69 | 6f 6e 0d 49 66 20 6e 69 |-conditi|on.If ni| |00002d80| 6c 2c 20 69 6e 64 69 63 | 61 74 65 73 20 6e 6f 20 |l, indic|ates no | |00002d90| 65 72 72 6f 72 73 20 6f | 63 63 75 72 72 65 64 20 |errors o|ccurred | |00002da0| 64 75 72 69 6e 67 20 74 | 68 65 20 6c 61 73 74 20 |during t|he last | |00002db0| 70 72 69 6e 74 20 72 65 | 71 75 65 73 74 2e 0d 4f |print re|quest..O| |00002dc0| 74 68 65 72 77 69 73 65 | 2c 20 72 65 74 75 72 6e |therwise|, return| |00002dd0| 73 20 74 68 65 20 70 72 | 69 6e 74 65 72 2d 63 6f |s the pr|inter-co| |00002de0| 6e 64 69 74 69 6f 6e 20 | 77 69 74 68 20 73 6c 6f |ndition |with slo| |00002df0| 74 73 3a 0d 70 68 61 73 | 65 20 2d 20 65 69 74 68 |ts:.phas|e - eith| |00002e00| 65 72 20 24 65 72 72 2d | 70 72 69 6e 74 65 72 3f |er $err-|printer?| |00002e10| 3f 3f 20 6f 72 20 6e 69 | 6c 0d 63 6f 64 65 20 20 |?? or ni|l.code | |00002e20| 2d 20 65 69 74 68 65 72 | 20 74 68 65 20 63 6f 64 |- either| the cod| |00002e30| 65 20 72 65 74 75 72 6e | 65 64 20 66 72 6f 6d 20 |e return|ed from | |00002e40| 74 68 65 20 70 72 69 6e | 74 65 72 20 6f 70 65 72 |the prin|ter oper| |00002e50| 61 74 69 6f 6e 20 6f 72 | 20 6e 69 6c 0d 63 6f 6e |ation or| nil.con| |00002e60| 64 20 20 2d 20 65 69 74 | 68 65 72 20 6e 69 6c 20 |d - eit|her nil | |00002e70| 6f 72 20 61 6e 20 65 72 | 72 6f 72 20 63 6f 6e 64 |or an er|ror cond| |00002e80| 69 74 69 6f 6e 20 77 68 | 65 6e 20 6e 6f 74 20 61 |ition wh|en not a| |00002e90| 20 70 72 69 6e 74 65 72 | 20 65 72 72 6f 72 0d 0d | printer| error..| |00002ea0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00002eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002ec0| 20 20 20 20 20 20 20 20 | 20 3b 20 50 6f 73 74 53 | | ; PostS| |00002ed0| 63 72 69 70 74 0d 2d 2d | 20 50 6f 73 74 53 63 72 |cript.--| PostScr| |00002ee0| 69 70 74 20 72 6f 75 74 | 69 6e 65 73 20 2d 2d 0d |ipt rout|ines --.| |00002ef0| 54 68 65 20 73 63 61 6c | 65 2d 6c 69 6e 65 2d 77 |The scal|e-line-w| |00002f00| 69 64 74 68 20 61 6e 64 | 20 6e 6f 72 6d 61 6c 2d |idth and| normal-| |00002f10| 6c 69 6e 65 2d 77 69 64 | 74 68 20 72 6f 75 74 69 |line-wid|th routi| |00002f20| 6e 65 73 20 61 66 66 65 | 63 74 20 50 6f 73 74 53 |nes affe|ct PostS| |00002f30| 63 72 69 70 74 0d 64 65 | 76 69 63 65 73 20 6f 6e |cript.de|vices on| |00002f40| 6c 79 2e 20 55 73 65 20 | 74 68 65 73 65 20 63 6f |ly. Use |these co| |00002f50| 6d 6d 61 6e 64 73 20 69 | 6e 20 64 6f 63 75 6d 65 |mmands i|n docume| |00002f60| 6e 74 2d 68 61 72 64 63 | 6f 70 79 20 6f 72 20 74 |nt-hardc|opy or t| |00002f70| 6f 20 63 72 65 61 74 65 | 0d 61 20 70 69 63 74 75 |o create|.a pictu| |00002f80| 72 65 20 70 72 69 6e 74 | 65 64 20 62 79 20 70 69 |re print|ed by pi| |00002f90| 63 74 75 72 65 2d 68 61 | 72 64 63 6f 70 79 2c 20 |cture-ha|rdcopy, | |00002fa0| 77 68 65 6e 20 75 73 69 | 6e 67 20 61 20 50 6f 73 |when usi|ng a Pos| |00002fb0| 74 53 63 72 69 70 74 20 | 64 65 76 69 63 65 2e 0d |tScript |device..| |00002fc0| 0d 46 6f 72 20 64 65 74 | 61 69 6c 73 20 6f 6e 20 |.For det|ails on | |00002fd0| 73 65 74 2d 6c 69 6e 65 | 2d 77 69 64 74 68 20 61 |set-line|-width a| |00002fe0| 6e 64 20 70 69 63 74 75 | 72 65 20 63 6f 6d 6d 65 |nd pictu|re comme| |00002ff0| 6e 74 73 2c 20 73 65 65 | 20 4d 61 63 20 54 65 63 |nts, see| Mac Tec| |00003000| 68 20 4e 6f 74 65 73 20 | 23 31 37 35 0d 28 53 65 |h Notes |#175.(Se| |00003010| 74 4c 69 6e 65 57 69 64 | 74 68 20 52 65 76 65 61 |tLineWid|th Revea| |00003020| 6c 65 64 29 20 61 6e 64 | 20 23 39 31 20 28 4f 70 |led) and| #91 (Op| |00003030| 74 69 6d 69 7a 69 6e 67 | 20 66 6f 72 20 74 68 65 |timizing| for the| |00003040| 20 4c 61 73 65 72 57 72 | 69 74 65 72 20 2d 20 50 | LaserWr|iter - P| |00003050| 69 63 74 75 72 65 20 0d | 43 6f 6d 6d 65 6e 74 73 |icture .|Comments| |00003060| 29 2e 0d 0d 28 73 63 61 | 6c 65 2d 6c 69 6e 65 2d |)...(sca|le-line-| |00003070| 77 69 64 74 68 20 73 63 | 61 6c 65 29 20 20 20 20 |width sc|ale) | |00003080| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 66 75 | | ; fu| |00003090| 6e 63 74 69 6f 6e 0d 53 | 65 74 73 20 74 68 65 20 |nction.S|ets the | |000030a0| 73 63 61 6c 65 20 66 61 | 63 74 6f 72 20 66 6f 72 |scale fa|ctor for| |000030b0| 20 74 68 65 20 50 6f 73 | 74 73 63 72 69 70 74 20 | the Pos|tscript | |000030c0| 70 65 6e 20 77 69 64 74 | 68 2c 20 68 61 73 20 6e |pen widt|h, has n| |000030d0| 6f 20 65 66 66 65 63 74 | 0d 6f 6e 20 51 75 69 63 |o effect|.on Quic| |000030e0| 6b 44 72 61 77 20 64 65 | 76 69 63 65 73 2e 0d 0d |kDraw de|vices...| |000030f0| 53 63 61 6c 65 20 69 73 | 20 74 68 65 20 72 61 74 |Scale is| the rat| |00003100| 69 6f 6e 61 6c 20 75 73 | 65 64 20 66 6f 72 20 73 |ional us|ed for s| |00003110| 63 61 6c 69 6e 67 20 74 | 68 65 20 51 75 69 63 6b |caling t|he Quick| |00003120| 64 72 61 77 20 70 65 6e | 20 77 69 64 74 68 0d 46 |draw pen| width.F| |00003130| 6f 72 20 74 68 65 20 74 | 68 69 6e 65 73 74 20 6c |or the t|hinest l| |00003140| 69 6e 65 73 20 70 6f 73 | 73 69 62 6c 65 20 6f 6e |ines pos|sible on| |00003150| 20 61 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 61 | a Laser|Writer a| |00003160| 74 20 52 65 64 75 63 65 | 2f 45 6e 6c 61 72 67 65 |t Reduce|/Enlarge| |00003170| 3d 31 30 30 25 0d 20 20 | 28 31 29 20 73 65 74 20 |=100%. |(1) set | |00003180| 74 68 65 20 71 75 69 63 | 6b 64 72 61 77 20 70 65 |the quic|kdraw pe| |00003190| 6e 20 77 69 64 74 68 20 | 74 6f 20 23 40 28 31 20 |n width |to #@(1 | |000031a0| 31 29 0d 20 20 28 32 29 | 20 63 61 6c 6c 20 28 73 |1). (2)| call (s| |000031b0| 63 61 6c 65 2d 6c 69 6e | 65 2d 77 69 64 74 68 20 |cale-lin|e-width | |000031c0| 31 2f 34 29 0d 0d 28 6e | 6f 72 6d 61 6c 2d 6c 69 |1/4)..(n|ormal-li| |000031d0| 6e 65 2d 77 69 64 74 68 | 29 20 20 20 20 20 20 20 |ne-width|) | |000031e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 | | ; | |000031f0| 66 75 6e 63 74 69 6f 6e | 0d 53 65 74 73 20 74 68 |function|.Sets th| |00003200| 65 20 73 63 61 6c 65 20 | 66 61 63 74 6f 72 20 74 |e scale |factor t| |00003210| 6f 20 31 20 66 6f 72 20 | 74 68 65 20 50 6f 73 74 |o 1 for |the Post| |00003220| 73 63 72 69 70 74 20 70 | 65 6e 20 77 69 64 74 68 |script p|en width| |00003230| 2c 20 68 61 73 20 6e 6f | 20 65 66 66 65 63 74 0d |, has no| effect.| |00003240| 6f 6e 20 51 75 69 63 6b | 44 72 61 77 20 64 65 76 |on Quick|Draw dev| |00003250| 69 63 65 73 2e 0d 0d 0d | 0d 2d 2d 2d 2d 2d 2d 2d |ices....|.-------| |00003260| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 55 |--------|-------U| |00003270| 6e 65 78 70 6f 72 74 65 | 64 20 72 6f 75 74 69 6e |nexporte|d routin| |00003280| 65 73 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |es------|--------| |00003290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 57 69 6e 64 |--------|--..Wind| |000032a0| 6f 77 2d 68 61 72 64 63 | 6f 70 79 20 70 72 69 6e |ow-hardc|opy prin| |000032b0| 74 73 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |ts the c|ontents | |000032c0| 6f 66 20 61 20 77 69 6e | 64 6f 77 2e 0d 53 70 65 |of a win|dow..Spe| |000032d0| 63 69 61 6c 69 7a 65 20 | 69 66 20 79 6f 75 20 77 |cialize |if you w| |000032e0| 61 6e 74 20 74 6f 20 61 | 63 68 65 69 76 65 20 64 |ant to a|cheive d| |000032f0| 69 66 66 65 72 65 6e 74 | 20 65 66 66 65 63 74 73 |ifferent| effects| |00003300| 20 66 6f 72 0d 6f 74 68 | 65 72 20 6b 69 6e 64 73 | for.oth|er kinds| |00003310| 20 6f 66 20 77 69 6e 64 | 6f 77 73 2e 0d 0d 55 73 | of wind|ows...Us| |00003320| 65 20 76 69 65 77 2d 70 | 72 69 6e 74 2d 63 6f 6e |e view-p|rint-con| |00003330| 74 65 6e 74 73 20 74 6f | 20 69 6e 69 74 69 61 74 |tents to| initiat| |00003340| 65 20 74 68 65 20 70 72 | 69 6e 74 69 6e 67 20 6f |e the pr|inting o| |00003350| 66 20 61 20 76 69 65 77 | 0d 61 6e 64 20 61 6c 6c |f a view|.and all| |00003360| 20 6f 66 20 69 74 73 20 | 73 75 62 76 69 65 77 73 | of its |subviews| |00003370| 2e 0d 0d 55 73 65 20 74 | 68 65 20 70 72 69 6e 74 |...Use t|he print| |00003380| 2d 63 6f 6e 74 65 6e 74 | 73 20 6d 65 74 68 6f 64 |-content|s method| |00003390| 73 20 61 73 20 74 68 65 | 20 62 61 73 69 73 20 66 |s as the| basis f| |000033a0| 6f 72 20 64 65 76 65 6c | 6f 70 69 6e 67 0d 6d 65 |or devel|oping.me| |000033b0| 74 68 6f 64 73 20 66 6f | 72 20 6f 74 68 65 72 20 |thods fo|r other | |000033c0| 74 79 70 65 73 20 6f 66 | 20 76 69 65 77 73 2e 0d |types of| views..| |000033d0| 0d 44 6f 63 75 6d 65 6e | 74 2d 68 61 72 64 63 6f |.Documen|t-hardco| |000033e0| 70 79 20 69 73 20 61 20 | 67 65 6e 65 72 61 6c 20 |py is a |general | |000033f0| 72 6f 75 74 69 6e 65 20 | 74 68 61 74 20 66 6f 72 |routine |that for| |00003400| 6d 73 20 74 68 65 20 62 | 61 73 69 73 0d 66 6f 72 |ms the b|asis.for| |00003410| 20 6f 74 68 65 72 20 70 | 72 69 6e 74 20 72 6f 75 | other p|rint rou| |00003420| 74 69 6e 65 73 2e 20 43 | 61 6c 6c 20 74 68 69 73 |tines. C|all this| |00003430| 20 72 6f 75 74 69 6e 65 | 20 69 66 20 79 6f 75 20 | routine| if you | |00003440| 77 61 6e 74 0d 74 6f 20 | 64 65 76 65 6c 6f 70 20 |want.to |develop | |00003450| 79 6f 75 72 20 6f 77 6e | 20 63 75 73 74 6f 6d 20 |your own| custom | |00003460| 70 72 69 6e 74 69 6e 67 | 20 66 75 6e 63 74 69 6f |printing| functio| |00003470| 6e 73 20 66 6f 20 64 6f | 63 75 6d 65 6e 74 73 0d |ns fo do|cuments.| |00003480| 61 6e 64 20 77 69 6e 64 | 6f 77 73 2e 0d 0d 77 69 |and wind|ows...wi| |00003490| 6e 64 6f 77 2d 68 61 72 | 64 63 6f 70 79 20 20 20 |ndow-har|dcopy | |000034a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000034b0| 20 20 20 20 20 20 3b 20 | 6d 65 74 68 6f 64 0d 77 | ; |method.w| |000034c0| 69 6e 64 6f 77 2d 68 61 | 72 64 63 6f 70 79 20 28 |indow-ha|rdcopy (| |000034d0| 77 69 6e 64 6f 77 20 77 | 69 6e 64 6f 77 29 20 26 |window w|indow) &| |000034e0| 6f 70 74 69 6f 6e 61 6c | 20 28 73 68 6f 77 2d 64 |optional| (show-d| |000034f0| 69 61 6c 6f 67 3f 20 74 | 29 0d 20 20 20 50 72 69 |ialog? t|). Pri| |00003500| 6e 74 73 20 74 68 65 20 | 77 69 6e 64 6f 77 2c 20 |nts the |window, | |00003510| 54 68 65 20 73 68 6f 77 | 2d 64 69 61 6c 6f 67 3f |The show|-dialog?| |00003520| 20 70 61 72 61 6d 65 74 | 65 72 20 69 73 20 70 72 | paramet|er is pr| |00003530| 65 73 65 6e 74 0d 20 20 | 20 66 6f 72 20 63 6f 6d |esent. | for com| |00003540| 70 61 74 69 62 69 6c 69 | 74 79 20 77 69 74 68 20 |patibili|ty with | |00003550| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6d 65 74 |the stan|dard met| |00003560| 68 6f 64 20 66 6f 72 20 | 66 72 65 64 2d 77 69 6e |hod for |fred-win| |00003570| 64 6f 77 73 0d 20 20 20 | 61 6e 64 20 69 73 20 75 |dows. |and is u| |00003580| 73 65 64 20 74 6f 20 64 | 69 73 70 6c 61 79 20 74 |sed to d|isplay t| |00003590| 68 65 20 70 72 69 6e 74 | 20 6a 6f 62 20 64 69 61 |he print| job dia| |000035a0| 6c 6f 67 2e 0d 20 20 20 | 0d 20 20 20 54 68 65 20 |log.. |. The | |000035b0| 62 61 73 69 63 20 72 6f | 75 74 69 6e 65 20 63 61 |basic ro|utine ca| |000035c0| 6c 6c 73 20 70 72 69 6e | 74 2d 63 6f 6e 74 65 6e |lls prin|t-conten| |000035d0| 74 73 20 6f 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ts on th|e window| |000035e0| 2c 20 77 68 69 63 68 0d | 20 20 20 72 65 70 65 61 |, which.| repea| |000035f0| 74 65 64 6c 79 20 63 61 | 6c 6c 73 20 70 72 69 6e |tedly ca|lls prin| |00003600| 74 2d 63 6f 6e 74 65 6e | 74 73 20 6f 6e 20 74 68 |t-conten|ts on th| |00003610| 65 20 76 69 65 77 73 20 | 61 6e 64 20 73 75 62 76 |e views |and subv| |00003620| 69 65 77 73 2e 0d 0d 20 | 20 20 49 66 20 6e 6f 20 |iews... | If no | |00003630| 70 72 69 6e 74 65 72 20 | 65 72 72 6f 72 73 20 6f |printer |errors o| |00003640| 63 63 75 72 72 65 64 20 | 61 6e 64 20 74 68 65 20 |ccurred |and the | |00003650| 75 73 65 72 20 64 69 64 | 20 6e 6f 74 20 63 61 6e |user did| not can| |00003660| 63 65 6c 0d 20 20 20 20 | 20 20 72 65 74 75 72 6e |cel. | return| |00003670| 73 20 74 0d 20 20 20 6f | 74 68 65 72 77 69 73 65 |s t. o|therwise| |00003680| 20 0d 20 20 20 20 20 20 | 72 65 74 75 72 6e 73 20 | . |returns | |00003690| 6e 69 6c 20 69 6e 64 69 | 63 61 74 69 6e 67 20 61 |nil indi|cating a| |000036a0| 6e 20 65 72 72 6f 72 20 | 6f 63 63 75 72 72 65 64 |n error |occurred| |000036b0| 20 69 6e 20 70 72 69 6e | 74 69 6e 67 0d 0d 20 20 | in prin|ting.. | |000036c0| 20 20 50 61 72 61 6d 65 | 74 65 72 73 0d 20 20 20 | Parame|ters. | |000036d0| 20 20 20 77 69 6e 64 6f | 77 20 20 20 20 20 20 20 | windo|w | |000036e0| 20 20 20 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 | the |window t| |000036f0| 6f 20 62 65 20 70 72 69 | 6e 74 65 64 0d 20 20 20 |o be pri|nted. | |00003700| 20 20 20 20 73 68 6f 77 | 2d 64 69 61 6c 6f 67 3f | show|-dialog?| |00003710| 20 20 20 20 64 69 73 70 | 6c 61 79 20 74 68 65 20 | disp|lay the | |00003720| 70 72 69 6e 74 20 6a 6f | 62 20 64 69 61 6c 6f 67 |print jo|b dialog| |00003730| 20 28 64 65 66 61 75 6c | 74 20 74 29 0d 0d 0d 64 | (defaul|t t)...d| |00003740| 6f 63 75 6d 65 6e 74 2d | 68 61 72 64 63 6f 70 79 |ocument-|hardcopy| |00003750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003760| 20 20 20 20 20 20 20 3b | 20 6e 6f 74 20 65 78 70 | ;| not exp| |00003770| 6f 72 74 65 64 0d 64 6f | 63 75 6d 65 6e 74 2d 68 |orted.do|cument-h| |00003780| 61 72 64 63 6f 70 79 20 | 20 70 72 69 6e 74 2d 66 |ardcopy | print-f| |00003790| 6e 20 63 6f 6d 70 75 74 | 65 2d 64 6f 63 2d 73 69 |n comput|e-doc-si| |000037a0| 7a 65 20 26 6b 65 79 20 | 76 69 65 77 20 28 73 68 |ze &key |view (sh| |000037b0| 6f 77 2d 64 69 61 6c 6f | 67 3f 20 74 29 0d 20 20 |ow-dialo|g? t). | |000037c0| 20 50 72 69 6e 74 73 20 | 61 20 64 6f 63 75 6d 65 | Prints |a docume| |000037d0| 6e 74 2e 20 54 68 65 20 | 73 68 6f 77 2d 64 69 61 |nt. The |show-dia| |000037e0| 6c 6f 67 3f 20 70 61 72 | 61 6d 65 74 65 72 20 69 |log? par|ameter i| |000037f0| 73 20 70 72 65 73 65 6e | 74 0d 20 20 20 66 6f 72 |s presen|t. for| |00003800| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w| |00003810| 69 74 68 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ith the |standard| |00003820| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 70 72 69 6e | method |for prin| |00003830| 74 69 6e 67 20 0d 20 20 | 20 66 72 65 64 2d 77 69 |ting . | fred-wi| |00003840| 6e 64 6f 77 73 20 61 6e | 64 20 69 73 20 75 73 65 |ndows an|d is use| |00003850| 64 20 74 6f 20 64 69 73 | 70 6c 61 79 20 74 68 65 |d to dis|play the| |00003860| 20 70 72 69 6e 74 20 6a | 6f 62 20 64 69 61 6c 6f | print j|ob dialo| |00003870| 67 2e 0d 0d 20 20 20 54 | 68 69 73 20 72 6f 75 74 |g... T|his rout| |00003880| 69 6e 65 20 69 73 20 74 | 68 65 20 62 61 73 69 73 |ine is t|he basis| |00003890| 20 66 6f 72 20 70 69 63 | 74 75 72 65 2d 68 61 72 | for pic|ture-har| |000038a0| 64 63 6f 70 79 20 61 6e | 64 20 77 69 6e 64 6f 77 |dcopy an|d window| |000038b0| 2d 68 61 72 64 63 6f 70 | 79 2e 0d 20 20 20 55 73 |-hardcop|y.. Us| |000038c0| 65 20 64 6f 63 75 6d 65 | 6e 74 2d 68 61 72 64 63 |e docume|nt-hardc| |000038d0| 6f 70 79 20 74 6f 20 62 | 75 69 6c 64 20 6f 74 68 |opy to b|uild oth| |000038e0| 65 72 20 73 70 65 63 69 | 61 6c 69 7a 65 64 20 68 |er speci|alized h| |000038f0| 61 72 64 63 6f 70 79 20 | 72 6f 75 74 69 6e 65 73 |ardcopy |routines| |00003900| 2e 0d 0d 20 20 20 49 66 | 20 6e 6f 20 70 72 69 6e |... If| no prin| |00003910| 74 65 72 20 65 72 72 6f | 72 73 20 6f 63 63 75 72 |ter erro|rs occur| |00003920| 72 65 64 20 61 6e 64 20 | 74 68 65 20 75 73 65 72 |red and |the user| |00003930| 20 64 69 64 20 6e 6f 74 | 20 63 61 6e 63 65 6c 0d | did not| cancel.| |00003940| 20 20 20 20 20 20 72 65 | 74 75 72 6e 73 20 74 0d | re|turns t.| |00003950| 20 20 20 6f 74 68 65 72 | 77 69 73 65 20 0d 20 20 | other|wise . | |00003960| 20 20 20 20 72 65 74 75 | 72 6e 73 20 6e 69 6c 20 | retu|rns nil | |00003970| 69 6e 64 69 63 61 74 69 | 6e 67 20 61 6e 20 65 72 |indicati|ng an er| |00003980| 72 6f 72 20 6f 63 63 75 | 72 72 65 64 20 69 6e 20 |ror occu|rred in | |00003990| 70 72 69 6e 74 69 6e 67 | 0d 0d 20 20 20 54 68 65 |printing|.. The| |000039a0| 20 72 6f 75 74 69 6e 65 | 20 70 65 72 66 6f 72 6d | routine| perform| |000039b0| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing | |000039c0| 73 65 71 75 65 6e 63 65 | 20 6f 66 20 6f 70 65 72 |sequence| of oper| |000039d0| 61 74 69 6f 6e 73 0d 20 | 20 20 31 2e 20 4f 70 65 |ations. | 1. Ope| |000039e0| 6e 73 20 74 68 65 20 70 | 72 69 6e 74 65 72 0d 20 |ns the p|rinter. | |000039f0| 20 20 32 2e 20 44 69 73 | 70 6c 61 79 73 20 74 68 | 2. Dis|plays th| |00003a00| 65 20 70 72 69 6e 74 20 | 6a 6f 62 20 64 69 61 6c |e print |job dial| |00003a10| 6f 67 20 62 6f 78 20 77 | 68 69 63 68 20 69 6e 64 |og box w|hich ind| |00003a20| 69 63 61 74 65 73 20 74 | 68 65 20 6d 65 74 68 6f |icates t|he metho| |00003a30| 64 20 66 6f 72 20 63 61 | 6e 63 65 6c 6c 69 6e 67 |d for ca|ncelling| |00003a40| 2e 0d 20 20 20 33 2e 20 | 52 65 74 72 69 65 76 65 |.. 3. |Retrieve| |00003a50| 73 20 74 68 65 20 70 72 | 69 6e 74 20 72 65 63 6f |s the pr|int reco| |00003a60| 72 64 0d 20 20 20 34 2e | 20 44 65 74 65 72 6d 69 |rd. 4.| Determi| |00003a70| 6e 65 73 20 74 68 65 20 | 70 61 67 65 20 6c 61 79 |nes the |page lay| |00003a80| 6f 75 74 20 75 73 69 6e | 67 20 74 68 65 20 72 65 |out usin|g the re| |00003a90| 63 74 61 6e 67 6c 65 20 | 63 6f 72 6e 65 72 73 0d |ctangle |corners.| |00003aa0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 65 64 20 62 | re|turned b| |00003ab0| 79 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2d 63 |y the do|cument-c| |00003ac0| 6f 72 6e 65 72 73 20 66 | 75 6e 63 74 69 6f 6e 0d |orners f|unction.| |00003ad0| 20 20 20 35 2e 20 4f 70 | 65 6e 73 20 74 68 65 20 | 5. Op|ens the | |00003ae0| 70 72 69 6e 74 65 72 20 | 64 6f 63 75 6d 65 6e 74 |printer |document| |00003af0| 0d 20 20 20 36 2e 20 57 | 68 69 6c 65 20 74 68 65 |. 6. W|hile the| |00003b00| 72 65 20 61 72 65 20 70 | 61 67 65 73 20 74 6f 20 |re are p|ages to | |00003b10| 70 72 69 6e 74 20 61 6e | 64 20 74 68 65 20 75 73 |print an|d the us| |00003b20| 65 72 20 68 61 73 20 6e | 6f 74 20 70 72 65 73 73 |er has n|ot press| |00003b30| 65 64 20 63 61 6e 63 65 | 6c 0d 20 20 20 20 20 20 |ed cance|l. | |00003b40| 20 20 20 46 6f 72 20 65 | 61 63 68 20 70 61 67 65 | For e|ach page| |00003b50| 20 69 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | in the |document| |00003b60| 20 74 68 61 74 20 69 73 | 20 74 6f 20 62 65 20 70 | that is| to be p| |00003b70| 72 69 6e 74 65 64 2c 20 | 72 65 70 65 61 74 73 20 |rinted, |repeats | |00003b80| 74 68 65 20 0d 20 20 20 | 20 20 20 20 20 20 66 6f |the . | fo| |00003b90| 6c 6c 6f 77 69 6e 67 20 | 73 74 65 70 73 0d 20 20 |llowing |steps. | |00003ba0| 20 20 20 20 20 20 20 20 | 20 20 61 2e 20 6f 70 65 | | a. ope| |00003bb0| 6e 73 20 74 68 65 20 70 | 61 67 65 0d 20 20 20 20 |ns the p|age. | |00003bc0| 20 20 20 20 20 20 20 20 | 62 2e 20 64 72 61 77 73 | |b. draws| |00003bd0| 20 74 68 65 20 70 61 67 | 65 20 75 73 69 6e 67 20 | the pag|e using | |00003be0| 74 68 65 20 70 72 69 6e | 74 2d 66 6e 0d 20 20 20 |the prin|t-fn. | |00003bf0| 20 20 20 20 20 20 20 20 | 20 63 2e 20 63 6c 6f 73 | | c. clos| |00003c00| 65 73 20 74 68 65 20 70 | 61 67 65 0d 20 20 20 37 |es the p|age. 7| |00003c10| 2e 20 43 6c 6f 73 65 73 | 20 74 68 65 20 70 72 69 |. Closes| the pri| |00003c20| 6e 74 65 72 20 64 6f 63 | 75 6d 65 6e 74 0d 20 20 |nter doc|ument. | |00003c30| 20 38 2e 20 43 6c 6f 73 | 65 73 20 74 68 65 20 70 | 8. Clos|es the p| |00003c40| 72 69 6e 74 65 72 0d 20 | 20 20 39 20 20 49 66 20 |rinter. | 9 If | |00003c50| 6e 6f 20 70 72 69 6e 74 | 65 72 20 65 72 72 6f 72 |no print|er error| |00003c60| 73 20 6f 63 63 75 72 72 | 65 64 20 61 6e 64 20 74 |s occurr|ed and t| |00003c70| 68 65 20 75 73 65 72 20 | 64 69 64 20 6e 6f 74 20 |he user |did not | |00003c80| 63 61 6e 63 65 6c 0d 20 | 20 20 20 20 20 20 20 20 |cancel. | | |00003c90| 72 65 74 75 72 6e 73 20 | 74 0d 20 20 20 20 20 20 |returns |t. | |00003ca0| 6f 74 68 65 72 77 69 73 | 65 20 0d 20 20 20 20 20 |otherwis|e . | |00003cb0| 20 20 20 20 72 65 74 75 | 72 6e 73 20 6e 69 6c 20 | retu|rns nil | |00003cc0| 69 6e 64 69 63 61 74 69 | 6e 67 20 61 6e 20 65 72 |indicati|ng an er| |00003cd0| 72 6f 72 20 6f 63 63 75 | 72 72 65 64 20 69 6e 20 |ror occu|rred in | |00003ce0| 70 72 69 6e 74 69 6e 67 | 0d 20 20 20 20 20 20 55 |printing|. U| |00003cf0| 73 65 20 28 67 65 74 2d | 70 72 69 6e 74 65 72 2d |se (get-|printer-| |00003d00| 65 72 72 6f 72 29 20 74 | 6f 20 72 65 74 72 69 76 |error) t|o retriv| |00003d10| 65 20 74 68 65 20 70 72 | 69 6e 74 65 72 20 65 72 |e the pr|inter er| |00003d20| 72 6f 72 20 63 6f 6e 64 | 69 74 69 6f 6e 2e 0d 0d |ror cond|ition...| |00003d30| 20 20 20 20 50 61 72 61 | 6d 65 74 65 72 73 0d 20 | Para|meters. | |00003d40| 20 20 20 64 6f 63 75 6d | 65 6e 74 2d 63 6f 72 6e | docum|ent-corn| |00003d50| 65 72 73 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ers . | | |00003d60| 20 20 20 20 20 20 20 46 | 75 6e 63 74 69 6f 6e 20 | F|unction | |00003d70| 74 68 61 74 20 63 6f 6d | 70 75 74 65 73 20 74 68 |that com|putes th| |00003d80| 65 20 63 6f 72 6e 65 72 | 73 20 6f 66 20 74 68 65 |e corner|s of the| |00003d90| 20 64 6f 63 75 6d 65 6e | 74 0d 20 20 20 20 20 20 | documen|t. | |00003da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 61 72 61 | | Para| |00003db0| 6d 65 74 65 72 73 3a 0d | 20 20 20 20 20 20 20 20 |meters:.| | |00003dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 76 | | v| |00003dd0| 69 65 77 20 20 20 20 20 | 20 20 20 20 74 68 65 20 |iew | the | |00003de0| 76 69 65 77 20 61 73 73 | 6f 63 69 61 74 65 64 20 |view ass|ociated | |00003df0| 77 69 74 68 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |with the| documen| |00003e00| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t. | | |00003e10| 20 20 20 20 20 20 20 20 | 20 70 61 67 65 2d 73 69 | | page-si| |00003e20| 7a 65 20 20 20 20 61 20 | 70 6f 69 6e 74 20 72 65 |ze a |point re| |00003e30| 70 72 65 73 65 6e 74 69 | 6e 67 20 74 68 65 20 73 |presenti|ng the s| |00003e40| 69 7a 65 20 6f 66 20 74 | 68 65 0d 20 20 20 20 20 |ize of t|he. | |00003e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p| |00003e70| 61 67 65 2d 72 65 63 74 | 61 6e 67 6c 65 20 69 6e |age-rect|angle in| |00003e80| 20 70 69 78 65 6c 73 0d | 20 20 20 20 20 20 20 20 | pixels.| | |00003e90| 20 20 20 20 20 20 20 20 | 20 20 52 65 74 75 72 6e | | Return| |00003ea0| 73 20 74 68 65 20 63 6f | 72 6e 65 72 73 20 6f 66 |s the co|rners of| |00003eb0| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 20 72 65 | the doc|ument re| |00003ec0| 63 74 61 6e 67 6c 65 0d | 20 20 20 20 20 20 20 20 |ctangle.| | |00003ed0| 20 20 20 20 20 20 20 20 | 20 20 57 68 65 72 65 20 | | Where | |00003ee0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 70 6f 69 6e |the defa|ult poin| |00003ef0| 74 73 20 61 72 65 20 23 | 40 28 30 20 30 29 20 70 |ts are #|@(0 0) p| |00003f00| 61 67 65 2d 73 69 7a 65 | 0d 20 20 20 20 20 20 20 |age-size|. | |00003f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003f20| 74 6f 70 6c 65 66 74 20 | 20 20 20 20 20 74 68 65 |topleft | the| |00003f30| 20 74 6f 70 20 6c 65 66 | 74 20 63 6f 72 6e 65 72 | top lef|t corner| |00003f40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00003f50| 20 20 20 20 20 20 20 20 | 62 6f 74 74 6f 6d 52 69 | |bottomRi| |00003f60| 67 68 74 20 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 |ght the| bottom | |00003f70| 72 69 67 68 74 20 63 6f | 72 6e 65 72 0d 20 20 20 |right co|rner. | |00003f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I| |00003f90| 66 20 64 6f 63 75 6d 65 | 6e 74 2d 63 6f 72 6e 65 |f docume|nt-corne| |00003fa0| 72 73 20 69 73 20 6e 6f | 74 20 61 20 66 75 6e 63 |rs is no|t a func| |00003fb0| 74 69 6f 6e 2c 20 75 73 | 65 73 20 74 68 65 20 72 |tion, us|es the r| |00003fc0| 6f 75 74 69 6e 65 0d 20 | 20 20 20 20 20 20 20 20 |outine. | | |00003fd0| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default| |00003fe0| 2d 64 6f 63 75 6d 65 6e | 74 2d 63 6f 72 6e 65 72 |-documen|t-corner| |00003ff0| 73 20 77 68 69 63 68 20 | 72 65 74 75 72 6e 73 20 |s which |returns | |00004000| 74 68 65 20 70 6f 69 6e | 74 73 20 64 65 66 69 6e |the poin|ts defin| |00004010| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ing. | | |00004020| 20 20 20 20 20 20 74 68 | 65 20 70 61 67 65 20 72 | th|e page r| |00004030| 65 63 74 61 6e 67 6c 65 | 2e 0d 0d 20 20 20 70 72 |ectangle|... pr| |00004040| 69 6e 74 2d 66 6e 20 20 | 20 20 20 20 20 46 75 6e |int-fn | Fun| |00004050| 63 74 69 6f 6e 20 74 68 | 61 74 20 64 72 61 77 73 |ction th|at draws| |00004060| 20 61 20 70 69 63 74 75 | 72 65 20 6f 66 20 74 68 | a pictu|re of th| |00004070| 65 20 64 6f 63 75 6d 65 | 6e 74 2e 0d 20 20 20 20 |e docume|nt.. | |00004080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 61 | | Pa| |00004090| 72 61 6d 65 74 65 72 73 | 3a 0d 20 20 20 20 20 20 |rameters|:. | |000040a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000040b0| 20 76 69 65 77 20 20 20 | 20 20 20 20 20 73 75 70 | view | sup| |000040c0| 70 6c 65 64 20 62 79 20 | 74 68 65 20 76 69 65 77 |pled by |the view| |000040d0| 20 6b 65 79 77 6f 72 64 | 2e 20 54 68 69 73 20 73 | keyword|. This s| |000040e0| 68 6f 75 6c 64 20 62 65 | 20 61 20 76 69 65 77 0d |hould be| a view.| |000040f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004110| 20 20 20 6f 72 20 6e 69 | 6c 2e 0d 20 20 20 20 20 | or ni|l.. | |00004120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004130| 20 20 70 61 67 65 2d 73 | 69 7a 65 20 20 20 74 68 | page-s|ize th| |00004140| 65 20 70 61 67 65 20 72 | 65 63 74 61 6e 67 6c 65 |e page r|ectangle| |00004150| 20 73 69 7a 65 20 61 73 | 20 61 20 70 6f 69 6e 74 | size as| a point| |00004160| 20 28 74 6f 70 20 6c 65 | 66 74 20 3d 20 23 40 28 | (top le|ft = #@(| |00004170| 30 20 30 29 29 0d 20 20 | 20 20 20 20 20 20 20 20 |0 0)). | | |00004180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 61 67 | | pag| |00004190| 65 2d 6e 6f 20 20 20 20 | 20 74 68 65 20 63 75 72 |e-no | the cur| |000041a0| 72 65 6e 74 20 70 61 67 | 65 20 62 65 69 6e 67 20 |rent pag|e being | |000041b0| 70 72 69 6e 74 65 64 0d | 20 20 20 20 20 20 20 20 |printed.| | |000041c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o| |000041d0| 66 66 73 65 74 20 20 20 | 20 20 20 74 68 65 20 74 |ffset | the t| |000041e0| 6f 70 20 6c 65 66 74 20 | 63 6f 72 6e 65 72 20 6f |op left |corner o| |000041f0| 66 20 74 68 65 20 70 6f | 72 74 69 6f 6e 20 6f 66 |f the po|rtion of| |00004200| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 0d 20 20 | the doc|ument. | |00004210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004220| 49 66 20 6c 6f 63 61 6c | 2c 20 70 72 69 6e 74 73 |If local|, prints| |00004230| 20 74 68 65 20 72 65 63 | 74 61 6e 67 75 6c 61 72 | the rec|tangular| |00004240| 20 70 6f 72 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | portion| of the | |00004250| 64 6f 63 75 6d 65 6e 74 | 20 64 65 66 69 6e 65 64 |document| defined| |00004260| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | | |00004270| 20 20 20 20 20 20 20 62 | 79 20 74 68 65 20 70 6f | b|y the po| |00004280| 69 6e 74 73 20 6f 66 66 | 73 65 74 20 28 61 64 64 |ints off|set (add| |00004290| 2d 70 6f 69 6e 74 73 20 | 6f 66 66 73 65 74 20 70 |-points |offset p| |000042a0| 61 67 65 2d 73 69 7a 65 | 29 2e 20 54 68 65 0d 20 |age-size|). The. | |000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000042c0| 20 20 20 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 | coor|dinates | |000042d0| 61 72 65 20 75 6e 63 68 | 61 6e 67 65 64 2e 0d 20 |are unch|anged.. | |000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000042f0| 20 4f 74 68 65 72 77 69 | 73 65 2c 20 61 64 6a 75 | Otherwi|se, adju| |00004300| 73 74 73 20 74 68 65 20 | 63 6f 6f 72 64 69 6e 61 |sts the |coordina| |00004310| 74 65 73 20 62 79 20 73 | 75 62 74 72 61 63 74 69 |tes by s|ubtracti| |00004320| 6e 67 20 6f 66 66 73 65 | 74 0d 20 20 20 20 20 20 |ng offse|t. | |00004330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f| |00004340| 72 6f 6d 20 61 6c 6c 20 | 70 6f 69 6e 74 73 20 74 |rom all |points t| |00004350| 6f 20 70 72 69 6e 74 20 | 77 69 74 68 69 6e 20 74 |o print |within t| |00004360| 68 65 20 70 61 67 65 20 | 72 65 63 74 61 6e 67 6c |he page |rectangl| |00004370| 65 20 23 40 28 30 20 30 | 29 0d 20 20 20 20 20 20 |e #@(0 0|). | |00004380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p| |00004390| 61 67 65 2d 73 69 7a 65 | 2e 0d 0d 20 20 20 20 20 |age-size|... | |000043a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 49 66 20 | | If | |000043b0| 70 72 69 6e 74 2d 66 6e | 20 69 73 20 6e 6f 74 20 |print-fn| is not | |000043c0| 61 20 66 75 6e 63 74 69 | 6f 6e 2c 20 75 73 65 73 |a functi|on, uses| |000043d0| 20 64 65 66 61 75 6c 74 | 2d 64 6f 63 75 6d 65 6e | default|-documen| |000043e0| 74 2d 68 61 72 64 63 6f | 70 79 0d 20 20 20 20 20 |t-hardco|py. | |000043f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 77 68 69 | | whi| |00004400| 63 68 20 64 6f 65 73 20 | 6e 6f 74 68 69 6e 67 2e |ch does |nothing.| |00004410| 0d 0d 20 20 20 3a 76 69 | 65 77 20 20 20 20 20 20 |.. :vi|ew | |00004420| 20 20 20 20 74 68 65 20 | 76 69 65 77 2c 20 64 65 | the |view, de| |00004430| 66 61 75 6c 74 20 69 73 | 20 6e 69 6c 20 66 6f 72 |fault is| nil for| |00004440| 20 6e 6f 20 76 69 65 77 | 2e 20 50 61 73 73 65 64 | no view|. Passed| |00004450| 20 61 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 | as a pa|rameter | |00004460| 74 6f 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |to. | | |00004470| 20 20 20 20 20 64 6f 63 | 75 6d 65 6e 74 2d 63 6f | doc|ument-co| |00004480| 72 6e 65 72 73 20 61 6e | 64 20 70 72 69 6e 74 2d |rners an|d print-| |00004490| 66 6e 2e 0d 0d 20 20 20 | 3a 73 68 6f 77 2d 64 69 |fn... |:show-di| |000044a0| 61 6c 6f 67 3f 20 20 64 | 69 73 70 6c 61 79 20 74 |alog? d|isplay t| |000044b0| 68 65 20 70 72 69 6e 74 | 20 6a 6f 62 20 64 69 61 |he print| job dia| |000044c0| 6c 6f 67 20 28 64 65 66 | 61 75 6c 74 20 74 29 0d |log (def|ault t).| |000044d0| 0d 20 20 20 3a 6c 6f 63 | 61 6c 20 20 20 20 20 20 |. :loc|al | |000044e0| 20 20 20 64 65 66 61 75 | 6c 74 20 69 73 20 74 2e | defau|lt is t.| |000044f0| 20 49 66 20 74 72 75 65 | 2c 20 75 73 65 20 74 68 | If true|, use th| |00004500| 65 20 64 6f 63 75 6d 65 | 6e 74 20 63 6f 6f 72 64 |e docume|nt coord| |00004510| 69 6e 61 74 65 73 20 77 | 68 69 6c 65 20 70 72 69 |inates w|hile pri| |00004520| 6e 74 69 6e 67 0d 20 20 | 20 20 20 20 20 20 20 20 |nting. | | |00004530| 20 20 20 20 20 20 20 20 | 6f 74 68 65 72 77 69 73 | |otherwis| |00004540| 65 20 75 73 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |e use co|ordinate| |00004550| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 70 61 67 |s within| the pag| |00004560| 65 20 72 65 63 74 61 6e | 67 6c 65 2c 0d 20 20 20 |e rectan|gle,. | |00004570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b| |00004580| 79 20 61 64 6a 75 73 74 | 69 6e 67 20 61 6c 6c 20 |y adjust|ing all | |00004590| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 62 79 20 6f |coordina|tes by o| |000045a0| 66 66 73 65 74 2e 20 0d | 0d 7c 23 0d 0d 28 65 78 |ffset. .|.|#..(ex| |000045b0| 70 6f 72 74 20 27 28 70 | 69 63 74 75 72 65 2d 68 |port '(p|icture-h| |000045c0| 61 72 64 63 6f 70 79 20 | 70 72 69 6e 74 2d 63 6f |ardcopy |print-co| |000045d0| 6e 74 65 6e 74 73 20 70 | 61 67 65 2d 73 65 74 75 |ntents p|age-setu| |000045e0| 70 20 67 65 74 2d 70 72 | 69 6e 74 65 72 2d 65 72 |p get-pr|inter-er| |000045f0| 72 6f 72 20 70 61 67 65 | 2d 73 69 7a 65 29 29 0d |ror page|-size)).| |00004600| 28 70 72 6f 76 69 64 65 | 20 27 70 72 69 6e 74 2d |(provide| 'print-| |00004610| 75 29 0d 0d 3b 3b 20 70 | 72 65 70 61 72 65 20 74 |u)..;; p|repare t| |00004620| 6f 20 72 65 64 65 66 69 | 6e 65 20 74 68 65 20 66 |o redefi|ne the f| |00004630| 75 6e 63 74 69 6f 6e 73 | 20 67 65 74 2d 70 72 65 |unctions| get-pre| |00004640| 63 20 61 6e 64 20 72 65 | 6d 6f 76 65 2d 70 72 65 |c and re|move-pre| |00004650| 63 20 62 79 20 61 20 73 | 74 61 6e 64 61 72 64 20 |c by a s|tandard | |00004660| 67 65 6e 65 72 69 63 20 | 66 75 6e 63 74 69 6f 6e |generic |function| |00004670| 0d 28 70 72 6f 67 6e 0d | 20 20 28 77 68 65 6e 20 |.(progn.| (when | |00004680| 28 61 6e 64 20 28 66 62 | 6f 75 6e 64 70 20 27 67 |(and (fb|oundp 'g| |00004690| 65 74 2d 70 72 65 63 29 | 20 0d 20 20 20 20 20 20 |et-prec)| . | |000046a0| 20 20 20 20 20 20 20 28 | 65 71 75 61 6c 20 28 74 | (|equal (t| |000046b0| 79 70 65 2d 6f 66 20 23 | 27 67 65 74 2d 70 72 65 |ype-of #|'get-pre| |000046c0| 63 29 20 27 66 75 6e 63 | 74 69 6f 6e 29 29 0d 20 |c) 'func|tion)). | |000046d0| 20 20 20 28 66 6d 61 6b | 75 6e 62 6f 75 6e 64 20 | (fmak|unbound | |000046e0| 27 67 65 74 2d 70 72 65 | 63 29 29 0d 20 20 28 77 |'get-pre|c)). (w| |000046f0| 68 65 6e 20 28 61 6e 64 | 20 28 66 62 6f 75 6e 64 |hen (and| (fbound| |00004700| 70 20 27 72 65 6d 6f 76 | 65 2d 70 72 65 63 29 0d |p 'remov|e-prec).| |00004710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 65 71 | | (eq| |00004720| 75 61 6c 20 28 74 79 70 | 65 2d 6f 66 20 23 27 67 |ual (typ|e-of #'g| |00004730| 65 74 2d 70 72 65 63 29 | 20 27 66 75 6e 63 74 69 |et-prec)| 'functi| |00004740| 6f 6e 29 29 0d 20 20 20 | 20 28 66 6d 61 6b 75 6e |on)). | (fmakun| |00004750| 62 6f 75 6e 64 20 27 72 | 65 6d 6f 76 65 2d 70 72 |bound 'r|emove-pr| |00004760| 65 63 29 29 0d 20 20 28 | 73 65 74 71 20 2a 73 61 |ec)). (|setq *sa| |00004770| 76 65 2d 65 78 69 74 2d | 66 75 6e 63 74 69 6f 6e |ve-exit-|function| |00004780| 73 2a 0d 20 20 20 20 20 | 20 20 20 28 72 65 6d 6f |s*. | (remo| |00004790| 76 65 20 27 72 65 6d 6f | 76 65 2d 70 72 65 63 20 |ve 'remo|ve-prec | |000047a0| 2a 73 61 76 65 2d 65 78 | 69 74 2d 66 75 6e 63 74 |*save-ex|it-funct| |000047b0| 69 6f 6e 73 2a 20 3a 6b | 65 79 20 23 27 66 75 6e |ions* :k|ey #'fun| |000047c0| 63 74 69 6f 6e 2d 6e 61 | 6d 65 29 29 29 0d 0d 28 |ction-na|me)))..(| |000047d0| 65 76 61 6c 2d 77 68 65 | 6e 20 28 65 76 61 6c 20 |eval-whe|n (eval | |000047e0| 6c 6f 61 64 20 63 6f 6d | 70 69 6c 65 29 0d 20 20 |load com|pile). | |000047f0| 28 72 65 71 75 69 72 65 | 20 3a 72 65 73 6f 75 72 |(require| :resour| |00004800| 63 65 73 29 29 0d 0d 23 | 2d 6e 6f 74 2d 6d 63 6c |ces))..#|-not-mcl| |00004810| 2d 66 69 6e 61 6c 20 0d | 28 65 76 61 6c 2d 77 68 |-final .|(eval-wh| |00004820| 65 6e 20 28 65 76 61 6c | 20 63 6f 6d 70 69 6c 65 |en (eval| compile| |00004830| 29 20 0d 20 20 28 72 65 | 71 75 69 72 65 20 3a 71 |) . (re|quire :q| |00004840| 75 69 63 6b 44 72 61 77 | 29 29 0d 23 2b 6e 6f 74 |uickDraw|)).#+not| |00004850| 2d 6d 63 6c 2d 66 69 6e | 61 6c 0d 28 65 76 61 6c |-mcl-fin|al.(eval| |00004860| 2d 77 68 65 6e 20 28 65 | 76 61 6c 20 63 6f 6d 70 |-when (e|val comp| |00004870| 69 6c 65 29 20 0d 20 20 | 28 63 63 6c 3a 3a 72 65 |ile) . |(ccl::re| |00004880| 71 75 69 72 65 2d 69 6e | 74 65 72 66 61 63 65 20 |quire-in|terface | |00004890| 3a 70 72 69 6e 74 54 72 | 61 70 73 29 0d 20 20 20 |:printTr|aps). | |000048a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000048b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000048c0| 20 20 20 20 20 3b 28 72 | 65 71 75 69 72 65 20 3a | ;(r|equire :| |000048d0| 71 75 69 63 6b 44 72 61 | 77 29 20 72 65 70 6c 61 |quickDra|w) repla| |000048e0| 63 65 64 20 62 79 20 74 | 77 6f 20 6d 61 63 72 6f |ced by t|wo macro| |000048f0| 73 20 62 65 6c 6f 77 0d | 20 20 28 72 65 71 75 69 |s below.| (requi| |00004900| 72 65 20 3a 6c 6f 6f 70 | 29 20 20 20 20 20 20 20 |re :loop|) | |00004910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004920| 3b 20 6c 6f 6f 70 20 69 | 73 20 61 75 74 6f 6d 61 |; loop i|s automa| |00004930| 74 69 63 61 6c 6c 79 20 | 69 6e 63 6c 75 64 65 64 |tically |included| |00004940| 20 69 6e 20 4d 43 4c 20 | 32 2e 30 66 0d 20 20 29 | in MCL |2.0f. )| |00004950| 0d 0d 0d 3b 3b 20 52 6f | 75 74 69 6e 65 73 20 66 |...;; Ro|utines f| |00004960| 72 6f 6d 20 71 75 69 63 | 6b 64 72 61 77 2d 75 2e |rom quic|kdraw-u.| |00004970| 6c 69 73 70 20 66 72 6f | 6d 20 4d 69 63 68 61 65 |lisp fro|m Michae| |00004980| 6c 20 53 2e 20 45 6e 67 | 62 65 72 0d 3b 3b 20 20 |l S. Eng|ber.;; | |00004990| 20 20 20 43 6f 70 79 72 | 69 67 68 74 20 20 31 39 | Copyr|ight 19| |000049a0| 39 31 20 4e 6f 72 74 68 | 77 65 73 74 65 72 6e 20 |91 North|western | |000049b0| 55 6e 69 76 65 72 73 69 | 74 79 20 49 6e 73 74 69 |Universi|ty Insti| |000049c0| 74 75 74 65 20 66 6f 72 | 20 74 68 65 20 4c 65 61 |tute for| the Lea| |000049d0| 72 6e 69 6e 67 20 53 63 | 69 65 6e 63 65 73 0d 3b |rning Sc|iences.;| |000049e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000049f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00004a00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00004a10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00004a20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 0d 0d 3b 3b 20 |;;;;;;;;|;;;..;; | |00004a30| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 61 |the foll|owing ma| |00004a40| 63 72 6f 73 20 61 72 65 | 20 73 74 61 6e 64 61 72 |cros are| standar| |00004a50| 64 20 69 6e 20 4d 43 4c | 32 2e 30 20 66 69 6e 61 |d in MCL|2.0 fina| |00004a60| 6c 0d 23 2b 6e 6f 74 2d | 6d 63 6c 2d 66 69 6e 61 |l.#+not-|mcl-fina| |00004a70| 6c 20 0d 28 65 76 61 6c | 2d 77 68 65 6e 20 28 3a |l .(eval|-when (:| |00004a80| 63 6f 6d 70 69 6c 65 2d | 74 6f 70 6c 65 76 65 6c |compile-|toplevel| |00004a90| 20 3a 6c 6f 61 64 2d 74 | 6f 70 6c 65 76 65 6c 20 | :load-t|oplevel | |00004aa0| 3a 65 78 65 63 75 74 65 | 29 0d 20 20 0d 20 20 28 |:execute|). . (| |00004ab0| 64 65 66 6d 61 63 72 6f | 20 68 72 65 66 20 28 70 |defmacro| href (p| |00004ac0| 6f 69 6e 74 65 72 20 61 | 63 63 65 73 73 6f 72 29 |ointer a|ccessor)| |00004ad0| 0d 20 20 20 20 60 28 72 | 72 65 66 20 2c 70 6f 69 |. `(r|ref ,poi| |00004ae0| 6e 74 65 72 20 2c 61 63 | 63 65 73 73 6f 72 20 3a |nter ,ac|cessor :| |00004af0| 73 74 6f 72 61 67 65 20 | 3a 68 61 6e 64 6c 65 29 |storage |:handle)| |00004b00| 29 0d 20 20 0d 20 20 28 | 64 65 66 6d 61 63 72 6f |). . (|defmacro| |00004b10| 20 70 72 65 66 20 28 70 | 6f 69 6e 74 65 72 20 61 | pref (p|ointer a| |00004b20| 63 63 65 73 73 6f 72 29 | 0d 20 20 20 20 60 28 72 |ccessor)|. `(r| |00004b30| 72 65 66 20 2c 70 6f 69 | 6e 74 65 72 20 2c 61 63 |ref ,poi|nter ,ac| |00004b40| 63 65 73 73 6f 72 20 3a | 73 74 6f 72 61 67 65 20 |cessor :|storage | |00004b50| 3a 70 6f 69 6e 74 65 72 | 29 29 29 0d 20 20 0d 28 |:pointer|))). .(| |00004b60| 64 65 66 6d 61 63 72 6f | 20 68 73 65 74 20 28 70 |defmacro| hset (p| |00004b70| 6f 69 6e 74 65 72 20 61 | 63 63 65 73 73 6f 72 20 |ointer a|ccessor | |00004b80| 74 68 69 6e 67 29 0d 20 | 20 60 28 72 73 65 74 20 |thing). | `(rset | |00004b90| 2c 70 6f 69 6e 74 65 72 | 20 2c 61 63 63 65 73 73 |,pointer| ,access| |00004ba0| 6f 72 20 2c 74 68 69 6e | 67 20 3a 73 74 6f 72 61 |or ,thin|g :stora| |00004bb0| 67 65 20 3a 68 61 6e 64 | 6c 65 29 29 0d 0d 28 64 |ge :hand|le))..(d| |00004bc0| 65 66 6d 61 63 72 6f 20 | 70 73 65 74 20 28 70 6f |efmacro |pset (po| |00004bd0| 69 6e 74 65 72 20 61 63 | 63 65 73 73 6f 72 20 74 |inter ac|cessor t| |00004be0| 68 69 6e 67 29 0d 20 20 | 60 28 72 73 65 74 20 2c |hing). |`(rset ,| |00004bf0| 70 6f 69 6e 74 65 72 20 | 2c 61 63 63 65 73 73 6f |pointer |,accesso| |00004c00| 72 20 2c 74 68 69 6e 67 | 20 3a 73 74 6f 72 61 67 |r ,thing| :storag| |00004c10| 65 20 3a 70 6f 69 6e 74 | 65 72 29 29 0d 0d 28 75 |e :point|er))..(u| |00004c20| 6e 6c 65 73 73 20 28 66 | 62 6f 75 6e 64 70 20 27 |nless (f|boundp '| |00004c30| 77 69 74 68 2d 72 65 63 | 74 61 6e 67 6c 65 2d 61 |with-rec|tangle-a| |00004c40| 72 67 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |rg). | | |00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 61 64 | | ; ad| |00004c70| 64 20 71 75 69 63 6b 64 | 72 61 77 20 73 75 70 70 |d quickd|raw supp| |00004c80| 6f 72 74 20 72 6f 75 74 | 69 6e 65 73 0d 20 20 28 |ort rout|ines. (| |00004c90| 64 65 66 6d 61 63 72 6f | 20 77 69 74 68 2d 72 65 |defmacro| with-re| |00004ca0| 63 74 61 6e 67 6c 65 2d | 61 72 67 20 28 28 76 61 |ctangle-|arg ((va| |00004cb0| 72 20 6c 65 66 74 20 26 | 6f 70 74 69 6f 6e 61 6c |r left &|optional| |00004cc0| 20 74 6f 70 20 72 69 67 | 68 74 20 62 6f 74 74 6f | top rig|ht botto| |00004cd0| 6d 29 20 26 62 6f 64 79 | 20 62 6f 64 79 29 0d 20 |m) &body| body). | |00004ce0| 20 20 20 22 74 61 6b 65 | 73 20 61 20 72 65 63 74 | "take|s a rect| |00004cf0| 61 6e 67 6c 65 2c 20 74 | 77 6f 20 70 6f 69 6e 74 |angle, t|wo point| |00004d00| 73 2c 20 6f 72 20 66 6f | 75 72 20 63 6f 6f 72 64 |s, or fo|ur coord| |00004d10| 69 6e 61 74 65 73 20 61 | 6e 64 20 6d 61 6b 65 73 |inates a|nd makes| |00004d20| 20 61 20 72 65 63 74 61 | 6e 67 6c 65 2e 0d 62 6f | a recta|ngle..bo| |00004d30| 64 79 20 69 73 20 65 76 | 61 6c 75 61 74 65 64 20 |dy is ev|aluated | |00004d40| 77 69 74 68 20 56 41 52 | 20 62 6f 75 6e 64 20 74 |with VAR| bound t| |00004d50| 6f 20 74 68 61 74 20 72 | 65 63 74 61 6e 67 6c 65 |o that r|ectangle| |00004d60| 2e 22 0d 20 20 20 20 60 | 28 72 6c 65 74 20 28 28 |.". `|(rlet ((| |00004d70| 2c 76 61 72 20 3a 72 65 | 63 74 29 29 0d 20 20 20 |,var :re|ct)). | |00004d80| 20 20 20 20 28 73 65 74 | 75 70 2d 72 65 63 74 20 | (set|up-rect | |00004d90| 2c 76 61 72 20 2c 6c 65 | 66 74 20 2c 74 6f 70 20 |,var ,le|ft ,top | |00004da0| 2c 72 69 67 68 74 20 2c | 62 6f 74 74 6f 6d 29 0d |,right ,|bottom).| |00004db0| 20 20 20 20 20 20 20 2c | 40 62 6f 64 79 29 29 0d | ,|@body)).| |00004dc0| 0d 20 20 28 64 65 66 75 | 6e 20 73 65 74 75 70 2d |. (defu|n setup-| |00004dd0| 72 65 63 74 20 28 72 65 | 63 74 20 6c 65 66 74 20 |rect (re|ct left | |00004de0| 74 6f 70 20 72 69 67 68 | 74 20 62 6f 74 74 6f 6d |top righ|t bottom| |00004df0| 29 0d 20 20 20 20 28 63 | 6f 6e 64 20 28 62 6f 74 |). (c|ond (bot| |00004e00| 74 6f 6d 0d 20 20 20 20 | 20 20 20 20 20 20 20 28 |tom. | (| |00004e10| 73 65 74 66 20 28 70 72 | 65 66 20 72 65 63 74 20 |setf (pr|ef rect | |00004e20| 72 65 63 74 2e 74 6f 70 | 6c 65 66 74 29 20 28 6d |rect.top|left) (m| |00004e30| 61 6b 65 2d 70 6f 69 6e | 74 20 6c 65 66 74 20 74 |ake-poin|t left t| |00004e40| 6f 70 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |op)). | | |00004e50| 28 73 65 74 66 20 28 70 | 72 65 66 20 72 65 63 74 |(setf (p|ref rect| |00004e60| 20 72 65 63 74 2e 62 6f | 74 74 6f 6d 72 69 67 68 | rect.bo|ttomrigh| |00004e70| 74 29 20 28 6d 61 6b 65 | 2d 70 6f 69 6e 74 20 72 |t) (make|-point r| |00004e80| 69 67 68 74 20 62 6f 74 | 74 6f 6d 29 29 29 0d 20 |ight bot|tom))). | |00004e90| 20 20 20 20 20 20 20 20 | 20 28 72 69 67 68 74 0d | | (right.| |00004ea0| 20 20 20 20 20 20 20 20 | 20 20 20 28 65 72 72 6f | | (erro| |00004eb0| 72 20 22 49 6c 6c 65 67 | 61 6c 20 72 65 63 74 61 |r "Illeg|al recta| |00004ec0| 6e 67 6c 65 20 61 72 67 | 75 6d 65 6e 74 73 3a 20 |ngle arg|uments: | |00004ed0| 7e 73 20 7e 73 20 7e 73 | 20 7e 73 22 0d 20 20 20 |~s ~s ~s| ~s". | |00004ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l| |00004ef0| 65 66 74 20 74 6f 70 20 | 72 69 67 68 74 20 62 6f |eft top |right bo| |00004f00| 74 74 6f 6d 29 29 0d 20 | 20 20 20 20 20 20 20 20 |ttom)). | | |00004f10| 20 28 74 6f 70 0d 20 20 | 20 20 20 20 20 20 20 20 | (top. | | |00004f20| 20 28 73 65 74 66 20 28 | 70 72 65 66 20 72 65 63 | (setf (|pref rec| |00004f30| 74 20 72 65 63 74 2e 74 | 6f 70 6c 65 66 74 29 20 |t rect.t|opleft) | |00004f40| 28 6d 61 6b 65 2d 70 6f | 69 6e 74 20 6c 65 66 74 |(make-po|int left| |00004f50| 20 6e 69 6c 29 29 0d 20 | 20 20 20 20 20 20 20 20 | nil)). | | |00004f60| 20 20 28 73 65 74 66 20 | 28 70 72 65 66 20 72 65 | (setf |(pref re| |00004f70| 63 74 20 72 65 63 74 2e | 62 6f 74 74 6f 6d 72 69 |ct rect.|bottomri| |00004f80| 67 68 74 29 20 28 6d 61 | 6b 65 2d 70 6f 69 6e 74 |ght) (ma|ke-point| |00004f90| 20 74 6f 70 20 6e 69 6c | 29 29 29 0d 20 20 20 20 | top nil|))). | |00004fa0| 20 20 20 20 20 20 28 74 | 20 28 25 73 65 74 66 2d | (t| (%setf-| |00004fb0| 6d 61 63 70 74 72 20 72 | 65 63 74 20 6c 65 66 74 |macptr r|ect left| |00004fc0| 29 29 29 29 0d 29 0d 0d | 28 64 65 66 6d 61 63 72 |)))).)..|(defmacr| |00004fd0| 6f 20 77 69 74 68 2d 66 | 6f 6e 74 2d 73 70 65 63 |o with-f|ont-spec| |00004fe0| 20 28 66 6f 6e 74 2d 73 | 70 65 63 20 26 62 6f 64 | (font-s|pec &bod| |00004ff0| 79 20 62 6f 64 79 29 0d | 20 20 28 69 66 20 28 61 |y body).| (if (a| |00005000| 6e 64 20 28 6c 69 73 74 | 70 20 66 6f 6e 74 2d 73 |nd (list|p font-s| |00005010| 70 65 63 29 20 28 65 76 | 65 72 79 20 23 27 63 6f |pec) (ev|ery #'co| |00005020| 6e 73 74 61 6e 74 70 20 | 66 6f 6e 74 2d 73 70 65 |nstantp |font-spe| |00005030| 63 29 29 0d 20 20 20 20 | 28 6d 75 6c 74 69 70 6c |c)). |(multipl| |00005040| 65 2d 76 61 6c 75 65 2d | 62 69 6e 64 20 28 66 66 |e-value-|bind (ff| |00005050| 20 6d 73 29 20 28 66 6f | 6e 74 2d 63 6f 64 65 73 | ms) (fo|nt-codes| |00005060| 20 66 6f 6e 74 2d 73 70 | 65 63 29 0d 20 20 20 20 | font-sp|ec). | |00005070| 20 20 60 28 77 69 74 68 | 2d 66 6f 6e 74 2d 63 6f | `(with|-font-co| |00005080| 64 65 73 20 2c 66 66 20 | 2c 6d 73 20 2c 40 62 6f |des ,ff |,ms ,@bo| |00005090| 64 79 29 29 0d 20 20 20 | 20 28 6c 65 74 20 28 28 |dy)). | (let ((| |000050a0| 66 66 20 28 67 65 6e 73 | 79 6d 29 29 0d 20 20 20 |ff (gens|ym)). | |000050b0| 20 20 20 20 20 20 20 28 | 6d 73 20 28 67 65 6e 73 | (|ms (gens| |000050c0| 79 6d 29 29 29 0d 20 20 | 20 20 20 20 60 28 6d 75 |ym))). | `(mu| |000050d0| 6c 74 69 70 6c 65 2d 76 | 61 6c 75 65 2d 62 69 6e |ltiple-v|alue-bin| |000050e0| 64 20 28 2c 66 66 20 2c | 6d 73 29 20 28 66 6f 6e |d (,ff ,|ms) (fon| |000050f0| 74 2d 63 6f 64 65 73 20 | 2c 66 6f 6e 74 2d 73 70 |t-codes |,font-sp| |00005100| 65 63 29 0d 20 20 20 20 | 20 20 20 20 20 28 77 69 |ec). | (wi| |00005110| 74 68 2d 66 6f 6e 74 2d | 63 6f 64 65 73 20 2c 66 |th-font-|codes ,f| |00005120| 66 20 2c 6d 73 20 2c 40 | 62 6f 64 79 29 29 29 29 |f ,ms ,@|body))))| |00005130| 29 0d 0d 28 64 65 66 6d | 61 63 72 6f 20 77 69 74 |)..(defm|acro wit| |00005140| 68 2d 70 65 6e 2d 73 74 | 61 74 65 20 28 28 26 6b |h-pen-st|ate ((&k| |00005150| 65 79 20 70 6e 4c 6f 63 | 20 70 6e 53 69 7a 65 20 |ey pnLoc| pnSize | |00005160| 70 6e 4d 6f 64 65 20 70 | 6e 50 61 74 20 70 6e 50 |pnMode p|nPat pnP| |00005170| 69 78 50 61 74 29 20 26 | 62 6f 64 79 20 62 6f 64 |ixPat) &|body bod| |00005180| 79 29 0d 20 20 28 6c 65 | 74 20 28 28 73 74 61 74 |y). (le|t ((stat| |00005190| 65 20 28 67 65 6e 73 79 | 6d 29 29 29 0d 20 20 20 |e (gensy|m))). | |000051a0| 20 60 28 72 6c 65 74 20 | 28 28 2c 73 74 61 74 65 | `(rlet |((,state| |000051b0| 20 3a 50 65 6e 53 74 61 | 74 65 29 29 0d 20 20 20 | :PenSta|te)). | |000051c0| 20 20 20 20 28 72 65 71 | 75 69 72 65 2d 74 72 61 | (req|uire-tra| |000051d0| 70 20 23 5f 47 65 74 50 | 65 6e 53 74 61 74 65 20 |p #_GetP|enState | |000051e0| 3a 70 74 72 20 2c 73 74 | 61 74 65 29 0d 20 20 20 |:ptr ,st|ate). | |000051f0| 20 20 20 20 28 75 6e 77 | 69 6e 64 2d 70 72 6f 74 | (unw|ind-prot| |00005200| 65 63 74 0d 20 20 20 20 | 20 20 20 20 20 28 70 72 |ect. | (pr| |00005210| 6f 67 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 2c |ogn. | ,| |00005220| 40 28 77 68 65 6e 20 70 | 6e 4c 6f 63 20 20 20 20 |@(when p|nLoc | |00005230| 60 28 28 72 65 71 75 69 | 72 65 2d 74 72 61 70 20 |`((requi|re-trap | |00005240| 23 5f 4d 6f 76 65 54 6f | 20 3a 6c 6f 6e 67 20 2c |#_MoveTo| :long ,| |00005250| 70 6e 4c 6f 63 29 29 29 | 0d 20 20 20 20 20 20 20 |pnLoc)))|. | |00005260| 20 20 20 20 2c 40 28 77 | 68 65 6e 20 70 6e 53 69 | ,@(w|hen pnSi| |00005270| 7a 65 20 20 20 60 28 28 | 72 65 71 75 69 72 65 2d |ze `((|require-| |00005280| 74 72 61 70 20 23 5f 50 | 65 6e 53 69 7a 65 20 3a |trap #_P|enSize :| |00005290| 6c 6f 6e 67 20 2c 70 6e | 53 69 7a 65 29 29 29 0d |long ,pn|Size))).| |000052a0| 20 20 20 20 20 20 20 20 | 20 20 20 2c 40 28 77 68 | | ,@(wh| |000052b0| 65 6e 20 70 6e 4d 6f 64 | 65 20 20 20 60 28 28 72 |en pnMod|e `((r| |000052c0| 65 71 75 69 72 65 2d 74 | 72 61 70 20 23 5f 50 65 |equire-t|rap #_Pe| |000052d0| 6e 4d 6f 64 65 20 3a 73 | 69 67 6e 65 64 2d 69 6e |nMode :s|igned-in| |000052e0| 74 65 67 65 72 20 2c 70 | 6e 4d 6f 64 65 29 29 29 |teger ,p|nMode)))| |000052f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 2c 40 28 77 |. | ,@(w| |00005300| 68 65 6e 20 70 6e 50 61 | 74 20 20 20 20 60 28 28 |hen pnPa|t `((| |00005310| 72 65 71 75 69 72 65 2d | 74 72 61 70 20 23 5f 50 |require-|trap #_P| |00005320| 65 6e 50 61 74 20 3a 70 | 74 72 20 2c 70 6e 50 61 |enPat :p|tr ,pnPa| |00005330| 74 29 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |t))). | | |00005340| 2c 40 28 77 68 65 6e 20 | 70 6e 50 69 78 50 61 74 |,@(when |pnPixPat| |00005350| 20 60 28 28 72 65 71 75 | 69 72 65 2d 74 72 61 70 | `((requ|ire-trap| |00005360| 20 23 5f 50 65 6e 50 69 | 78 50 61 74 20 3a 70 74 | #_PenPi|xPat :pt| |00005370| 72 20 2c 70 6e 50 69 78 | 50 61 74 29 29 29 0d 20 |r ,pnPix|Pat))). | |00005380| 20 20 20 20 20 20 20 20 | 20 20 2c 40 62 6f 64 79 | | ,@body| |00005390| 29 0d 20 20 20 20 20 20 | 20 20 20 28 72 65 71 75 |). | (requ| |000053a0| 69 72 65 2d 74 72 61 70 | 20 23 5f 53 65 74 50 65 |ire-trap| #_SetPe| |000053b0| 6e 53 74 61 74 65 20 3a | 70 74 72 20 2c 73 74 61 |nState :|ptr ,sta| |000053c0| 74 65 29 29 29 29 29 0d | 3b 3b 3b 3b 3b 3b 3b 3b |te))))).|;;;;;;;;| |000053d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000053e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |000053f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005400| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005410| 3b 3b 3b 3b 0d 3b 3b 20 | 65 6e 64 20 6f 66 20 6d |;;;;.;; |end of m| |00005420| 61 63 72 6f 73 20 66 72 | 6f 6d 20 71 75 69 63 6b |acros fr|om quick| |00005430| 64 72 61 77 2d 75 2e 6c | 69 73 70 0d 0d 28 64 65 |draw-u.l|isp..(de| |00005440| 66 75 6e 20 73 65 74 2d | 70 61 67 65 2d 72 61 6e |fun set-|page-ran| |00005450| 67 65 20 28 70 72 65 63 | 20 70 61 67 65 73 2d 74 |ge (prec| pages-t| |00005460| 6f 2d 70 72 69 6e 74 29 | 0d 20 20 28 68 73 65 74 |o-print)|. (hset| |00005470| 20 70 72 65 63 20 3a 74 | 70 72 69 6e 74 2e 70 72 | prec :t|print.pr| |00005480| 6a 6f 62 2e 69 46 73 74 | 70 61 67 65 20 31 29 0d |job.iFst|page 1).| |00005490| 20 20 28 68 73 65 74 20 | 70 72 65 63 20 3a 74 70 | (hset |prec :tp| |000054a0| 72 69 6e 74 2e 70 72 6a | 6f 62 2e 69 4c 73 74 70 |rint.prj|ob.iLstp| |000054b0| 61 67 65 20 70 61 67 65 | 73 2d 74 6f 2d 70 72 69 |age page|s-to-pri| |000054c0| 6e 74 29 29 0d 0d 28 64 | 65 66 75 6e 20 63 6f 70 |nt))..(d|efun cop| |000054d0| 79 2d 68 61 6e 64 6c 65 | 20 28 68 61 6e 64 6c 65 |y-handle| (handle| |000054e0| 29 0d 20 20 28 72 6c 65 | 74 20 28 28 68 20 3a 70 |). (rle|t ((h :p| |000054f0| 6f 69 6e 74 65 72 29 29 | 0d 20 20 20 20 28 73 65 |ointer))|. (se| |00005500| 74 66 20 28 25 67 65 74 | 2d 70 74 72 20 68 29 20 |tf (%get|-ptr h) | |00005510| 68 61 6e 64 6c 65 29 0d | 20 20 20 20 28 23 5f 48 |handle).| (#_H| |00005520| 61 6e 64 54 6f 48 61 6e | 64 20 68 29 0d 20 20 20 |andToHan|d h). | |00005530| 20 28 25 67 65 74 2d 70 | 74 72 20 68 29 29 29 0d | (%get-p|tr h))).| |00005540| 0d 28 64 65 66 76 61 72 | 20 2a 70 72 69 6e 74 69 |.(defvar| *printi| |00005550| 6e 67 2a 20 6e 69 6c 20 | 22 50 72 69 6e 74 69 6e |ng* nil |"Printin| |00005560| 67 20 6e 6f 74 20 69 6e | 20 70 72 6f 67 72 65 73 |g not in| progres| |00005570| 73 22 29 0d 28 64 65 66 | 76 61 72 20 2a 70 72 69 |s").(def|var *pri| |00005580| 6e 74 2d 72 65 63 6f 72 | 64 2d 77 69 6e 64 6f 77 |nt-recor|d-window| |00005590| 2a 20 6e 69 6c 20 22 77 | 69 6e 64 6f 77 20 63 6f |* nil "w|indow co| |000055a0| 6e 74 61 69 6e 67 20 74 | 68 65 20 76 69 65 77 20 |ntaing t|he view | |000055b0| 62 65 69 6e 67 20 70 72 | 69 6e 74 65 64 22 29 0d |being pr|inted").| |000055c0| 28 64 65 66 76 61 72 20 | 2a 6d 63 6c 2d 67 65 74 |(defvar |*mcl-get| |000055d0| 2d 70 72 69 6e 74 2d 72 | 65 63 6f 72 64 2a 20 23 |-print-r|ecord* #| |000055e0| 27 67 65 74 2d 70 72 69 | 6e 74 2d 72 65 63 6f 72 |'get-pri|nt-recor| |000055f0| 64 29 0d 28 64 65 66 70 | 61 72 61 6d 65 74 65 72 |d).(defp|arameter| |00005600| 20 2a 64 65 62 75 67 2a | 20 6e 69 6c 29 20 20 20 | *debug*| nil) | |00005610| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 20 66 6f | | ; fo| |00005620| 72 20 64 65 62 75 67 67 | 69 6e 67 20 6f 6e 6c 79 |r debugg|ing only| |00005630| 0d 28 64 65 66 70 61 72 | 61 6d 65 74 65 72 20 2a |.(defpar|ameter *| |00005640| 70 72 69 6e 74 2d 65 72 | 72 6f 72 2a 20 6e 69 6c |print-er|ror* nil| |00005650| 20 22 54 68 65 20 70 72 | 69 6e 74 69 6e 67 20 65 | "The pr|inting e| |00005660| 72 72 6f 72 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |rror in |the form| |00005670| 20 70 72 69 6e 74 65 72 | 2d 63 6f 6e 64 69 74 69 | printer|-conditi| |00005680| 6f 6e 22 29 0d 28 64 65 | 66 76 61 72 20 2a 70 72 |on").(de|fvar *pr| |00005690| 69 6e 74 2d 68 63 2d 70 | 72 65 63 2a 29 20 20 20 |int-hc-p|rec*) | |000056a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 20 74 | | ; t| |000056b0| 68 65 20 64 65 66 61 75 | 6c 74 20 70 72 69 6e 74 |he defau|lt print| |000056c0| 2d 72 65 63 6f 72 64 0d | 0d 3b 3b 20 63 6f 6e 64 |-record.|.;; cond| |000056d0| 69 74 69 6f 6e 20 66 6f | 72 20 70 72 69 6e 74 65 |ition fo|r printe| |000056e0| 72 20 65 72 72 6f 72 73 | 0d 28 64 65 66 69 6e 65 |r errors|.(define| |000056f0| 2d 63 6f 6e 64 69 74 69 | 6f 6e 20 70 72 69 6e 74 |-conditi|on print| |00005700| 65 72 2d 63 6f 6e 64 69 | 74 69 6f 6e 20 28 65 72 |er-condi|tion (er| |00005710| 72 6f 72 29 0d 20 20 28 | 70 68 61 73 65 20 63 6f |ror). (|phase co| |00005720| 64 65 20 63 6f 6e 64 29 | 0d 20 20 28 3a 72 65 70 |de cond)|. (:rep| |00005730| 6f 72 74 20 28 6c 61 6d | 62 64 61 20 28 63 6f 6e |ort (lam|bda (con| |00005740| 64 69 74 69 6f 6e 20 73 | 74 72 65 61 6d 29 0d 20 |dition s|tream). | |00005750| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 77 69 74 | | (wit| |00005760| 68 2d 73 6c 6f 74 73 20 | 28 70 68 61 73 65 20 63 |h-slots |(phase c| |00005770| 6f 64 65 20 63 6f 6e 64 | 29 20 63 6f 6e 64 69 74 |ode cond|) condit| |00005780| 69 6f 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ion. | | |00005790| 20 20 20 28 69 66 20 63 | 6f 6e 64 0d 20 20 20 20 | (if c|ond. | |000057a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 66 6f | | (fo| |000057b0| 72 6d 61 74 20 73 74 72 | 65 61 6d 20 22 50 72 69 |rmat str|eam "Pri| |000057c0| 6e 74 65 72 20 65 72 72 | 6f 72 20 7e 73 22 20 63 |nter err|or ~s" c| |000057d0| 6f 6e 64 29 20 20 0d 20 | 20 20 20 20 20 20 20 20 |ond) . | | |000057e0| 20 20 20 20 20 20 20 20 | 28 66 6f 72 6d 61 74 20 | |(format | |000057f0| 73 74 72 65 61 6d 20 22 | 50 72 69 6e 74 65 72 20 |stream "|Printer | |00005800| 65 72 72 6f 72 20 7e 73 | 20 69 6e 20 70 68 61 73 |error ~s| in phas| |00005810| 65 20 7e 73 22 20 63 6f | 64 65 20 70 68 61 73 65 |e ~s" co|de phase| |00005820| 29 29 29 29 29 29 0d 0d | 3b 3b 20 63 6f 6e 64 69 |))))))..|;; condi| |00005830| 74 69 6f 6e 20 66 6f 72 | 20 61 20 75 73 65 72 2d |tion for| a user-| |00005840| 63 61 6e 63 65 6c 20 66 | 6f 72 20 61 20 70 72 69 |cancel f|or a pri| |00005850| 6e 74 20 6f 70 65 72 61 | 74 69 6f 6e 0d 28 64 65 |nt opera|tion.(de| |00005860| 66 69 6e 65 2d 63 6f 6e | 64 69 74 69 6f 6e 20 75 |fine-con|dition u| |00005870| 73 65 72 2d 63 61 6e 63 | 65 6c 20 28 70 72 69 6e |ser-canc|el (prin| |00005880| 74 65 72 2d 63 6f 6e 64 | 69 74 69 6f 6e 29 29 0d |ter-cond|ition)).| |00005890| 20 0d 0d 0d 3b 3b 20 66 | 75 6e 63 74 69 6f 6e 73 | ...;; f|unctions| |000058a0| 20 66 6f 72 20 63 6f 6e | 76 65 72 74 69 6e 67 20 | for con|verting | |000058b0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 66 72 6f 6d |coordina|tes from| |000058c0| 20 6f 6e 65 20 73 79 73 | 74 65 6d 20 74 6f 20 61 | one sys|tem to a| |000058d0| 6e 6f 74 68 65 72 0d 28 | 64 65 66 75 6e 20 63 6f |nother.(|defun co| |000058e0| 6e 76 65 72 74 2d 6f 66 | 66 73 65 74 20 28 77 69 |nvert-of|fset (wi| |000058f0| 6e 64 6f 77 20 63 6f 6e | 74 61 69 6e 65 72 20 6f |ndow con|tainer o| |00005900| 66 66 73 65 74 29 0d 20 | 20 3b 3b 20 49 66 20 74 |ffset). | ;; If t| |00005910| 68 65 20 63 6f 6e 74 61 | 69 6e 65 72 20 69 73 20 |he conta|iner is | |00005920| 61 20 76 69 65 77 2c 20 | 72 65 74 75 72 6e 73 20 |a view, |returns | |00005930| 69 6e 20 77 69 6e 64 6f | 77 20 63 6f 6f 72 64 69 |in windo|w coordi| |00005940| 6e 61 74 65 73 2c 20 0d | 20 20 3b 3b 20 74 68 65 |nates, .| ;; the| |00005950| 20 70 6f 69 6e 74 20 6f | 66 66 73 65 74 20 77 68 | point o|ffset wh| |00005960| 69 63 68 20 69 73 20 65 | 78 70 72 65 73 73 65 64 |ich is e|xpressed| |00005970| 20 69 6e 20 63 6f 6e 74 | 61 69 6e 65 72 20 63 6f | in cont|ainer co| |00005980| 6f 72 64 69 6e 61 74 65 | 73 0d 20 20 3b 3b 20 4f |ordinate|s. ;; O| |00005990| 74 68 65 72 77 69 73 65 | 20 72 65 74 75 72 6e 73 |therwise| returns| |000059a0| 20 74 68 65 20 6f 66 66 | 73 65 74 2e 0d 20 20 28 | the off|set.. (| |000059b0| 73 75 62 74 72 61 63 74 | 2d 70 6f 69 6e 74 73 20 |subtract|-points | |000059c0| 0d 20 20 20 28 69 66 20 | 63 6f 6e 74 61 69 6e 65 |. (if |containe| |000059d0| 72 0d 20 20 20 20 20 28 | 63 6f 6e 76 65 72 74 2d |r. (|convert-| |000059e0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 23 40 28 30 |coordina|tes #@(0| |000059f0| 20 30 29 20 63 6f 6e 74 | 61 69 6e 65 72 20 77 69 | 0) cont|ainer wi| |00005a00| 6e 64 6f 77 29 0d 20 20 | 20 20 20 23 40 28 30 20 |ndow). | #@(0 | |00005a10| 30 29 29 0d 20 20 20 6f | 66 66 73 65 74 29 29 0d |0)). o|ffset)).| |00005a20| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 77 69 6e 64 |.(defmet|hod wind| |00005a30| 6f 77 2d 76 69 65 77 2d | 63 6f 72 6e 65 72 73 20 |ow-view-|corners | |00005a40| 28 28 73 65 6c 66 20 76 | 69 65 77 29 20 26 6f 70 |((self v|iew) &op| |00005a50| 74 69 6f 6e 61 6c 20 28 | 6f 66 66 73 65 74 20 23 |tional (|offset #| |00005a60| 40 28 30 20 30 29 29 29 | 0d 20 20 3b 3b 20 72 65 |@(0 0)))|. ;; re| |00005a70| 74 75 72 6e 73 20 74 68 | 65 20 63 6f 6f 72 64 69 |turns th|e coordi| |00005a80| 6e 61 74 65 73 20 6f 66 | 20 74 68 65 20 76 69 65 |nates of| the vie| |00005a90| 77 20 63 6f 72 6e 65 72 | 73 20 69 6e 20 77 69 6e |w corner|s in win| |00005aa0| 64 6f 77 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 0d |dow coor|dinates.| |00005ab0| 20 20 3b 3b 20 6f 66 66 | 73 65 74 20 62 79 20 6f | ;; off|set by o| |00005ac0| 66 66 73 65 74 0d 20 20 | 28 6c 65 74 20 28 28 63 |ffset. |(let ((c| |00005ad0| 6f 6e 74 61 69 6e 65 72 | 20 28 76 69 65 77 2d 63 |ontainer| (view-c| |00005ae0| 6f 6e 74 61 69 6e 65 72 | 20 73 65 6c 66 29 29 0d |ontainer| self)).| |00005af0| 20 20 20 20 20 20 20 20 | 28 77 69 6e 64 6f 77 20 | |(window | |00005b00| 28 76 69 65 77 2d 77 69 | 6e 64 6f 77 20 73 65 6c |(view-wi|ndow sel| |00005b10| 66 29 29 29 0d 20 20 20 | 20 28 6d 75 6c 74 69 70 |f))). | (multip| |00005b20| 6c 65 2d 76 61 6c 75 65 | 2d 62 69 6e 64 20 28 74 |le-value|-bind (t| |00005b30| 6f 70 4c 65 66 74 20 62 | 6f 74 74 6f 6d 52 69 67 |opLeft b|ottomRig| |00005b40| 68 74 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ht). | | |00005b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 76 69 | | (vi| |00005b60| 65 77 2d 63 6f 72 6e 65 | 72 73 20 73 65 6c 66 29 |ew-corne|rs self)| |00005b70| 0d 20 20 20 20 20 20 28 | 73 65 74 71 20 6f 66 66 |. (|setq off| |00005b80| 73 65 74 20 28 63 6f 6e | 76 65 72 74 2d 6f 66 66 |set (con|vert-off| |00005b90| 73 65 74 20 77 69 6e 64 | 6f 77 20 63 6f 6e 74 61 |set wind|ow conta| |00005ba0| 69 6e 65 72 20 6f 66 66 | 73 65 74 29 29 0d 20 20 |iner off|set)). | |00005bb0| 20 20 20 20 28 76 61 6c | 75 65 73 20 28 61 64 64 | (val|ues (add| |00005bc0| 2d 70 6f 69 6e 74 73 20 | 74 6f 70 4c 65 66 74 20 |-points |topLeft | |00005bd0| 6f 66 66 73 65 74 29 20 | 28 61 64 64 2d 70 6f 69 |offset) |(add-poi| |00005be0| 6e 74 73 20 62 6f 74 74 | 6f 6d 52 69 67 68 74 20 |nts bott|omRight | |00005bf0| 6f 66 66 73 65 74 29 29 | 29 29 29 0d 0d 28 64 65 |offset))|)))..(de| |00005c00| 66 6d 65 74 68 6f 64 20 | 77 69 6e 64 6f 77 2d 76 |fmethod |window-v| |00005c10| 69 65 77 2d 63 6f 72 6e | 65 72 73 20 28 28 73 65 |iew-corn|ers ((se| |00005c20| 6c 66 20 64 69 61 6c 6f | 67 2d 69 74 65 6d 29 20 |lf dialo|g-item) | |00005c30| 20 26 6f 70 74 69 6f 6e | 61 6c 20 28 6f 66 66 73 | &option|al (offs| |00005c40| 65 74 20 23 40 28 30 20 | 30 29 29 29 0d 20 20 3b |et #@(0 |0))). ;| |00005c50| 3b 20 72 65 74 75 72 6e | 73 20 74 68 65 20 63 6f |; return|s the co| |00005c60| 6f 72 64 69 6e 61 74 65 | 73 20 6f 66 20 74 68 65 |ordinate|s of the| |00005c70| 20 76 69 65 77 20 63 6f | 72 6e 65 72 73 20 6f 66 | view co|rners of| |00005c80| 20 61 20 64 69 61 6c 6f | 67 20 69 74 65 6d 0d 20 | a dialo|g item. | |00005c90| 20 3b 3b 20 69 6e 20 77 | 69 6e 64 6f 77 20 63 6f | ;; in w|indow co| |00005ca0| 6f 72 64 69 6e 61 74 65 | 73 20 6f 66 66 73 65 74 |ordinate|s offset| |00005cb0| 20 62 79 20 6f 66 66 73 | 65 74 0d 20 20 28 6c 65 | by offs|et. (le| |00005cc0| 74 20 28 28 63 6f 6e 74 | 61 69 6e 65 72 20 28 76 |t ((cont|ainer (v| |00005cd0| 69 65 77 2d 63 6f 6e 74 | 61 69 6e 65 72 20 73 65 |iew-cont|ainer se| |00005ce0| 6c 66 29 29 0d 20 20 20 | 20 20 20 20 20 28 77 69 |lf)). | (wi| |00005cf0| 6e 64 6f 77 20 28 76 69 | 65 77 2d 77 69 6e 64 6f |ndow (vi|ew-windo| |00005d00| 77 20 73 65 6c 66 29 29 | 29 0d 20 20 20 20 28 6d |w self))|). (m| |00005d10| 75 6c 74 69 70 6c 65 2d | 76 61 6c 75 65 2d 62 69 |ultiple-|value-bi| |00005d20| 6e 64 20 28 74 6f 70 4c | 65 66 74 20 62 6f 74 74 |nd (topL|eft bott| |00005d30| 6f 6d 52 69 67 68 74 29 | 0d 20 20 20 20 20 20 20 |omRight)|. | |00005d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00005d50| 20 20 28 76 69 65 77 2d | 63 6f 72 6e 65 72 73 20 | (view-|corners | |00005d60| 73 65 6c 66 29 0d 20 20 | 20 20 20 20 28 73 65 74 |self). | (set| |00005d70| 71 20 6f 66 66 73 65 74 | 20 28 63 6f 6e 76 65 72 |q offset| (conver| |00005d80| 74 2d 6f 66 66 73 65 74 | 20 77 69 6e 64 6f 77 20 |t-offset| window | |00005d90| 63 6f 6e 74 61 69 6e 65 | 72 20 6f 66 66 73 65 74 |containe|r offset| |00005da0| 29 29 0d 20 20 20 20 20 | 20 28 76 61 6c 75 65 73 |)). | (values| |00005db0| 20 28 61 64 64 2d 70 6f | 69 6e 74 73 20 74 6f 70 | (add-po|ints top| |00005dc0| 4c 65 66 74 20 6f 66 66 | 73 65 74 29 20 28 61 64 |Left off|set) (ad| |00005dd0| 64 2d 70 6f 69 6e 74 73 | 20 62 6f 74 74 6f 6d 52 |d-points| bottomR| |00005de0| 69 67 68 74 20 6f 66 66 | 73 65 74 29 29 29 29 29 |ight off|set)))))| |00005df0| 0d 0d 3b 3b 3b 20 4d 6f | 64 69 66 69 65 64 20 72 |..;;; Mo|dified r| |00005e00| 6f 75 74 69 6e 65 73 20 | 66 72 6f 6d 20 70 72 69 |outines |from pri| |00005e10| 6e 74 2d 75 74 69 6c 73 | 2e 6c 69 73 70 20 66 6f |nt-utils|.lisp fo| |00005e20| 72 20 70 72 69 6e 74 69 | 6e 67 20 74 68 65 20 63 |r printi|ng the c| |00005e30| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 61 20 76 69 65 |ontents |of a vie| |00005e40| 77 73 0d 3b 3b 3b 20 63 | 6f 6e 76 65 72 74 65 64 |ws.;;; c|onverted| |00005e50| 20 66 72 6f 6d 20 4d 43 | 4c 31 2e 33 2e 32 0d 3b | from MC|L1.3.2.;| |00005e60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005e70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005e80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005e90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;| |00005ea0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 0d 3b 3b 0d 3b |;;;;;;;;|;;;.;;.;| |00005eb0| 3b 68 61 72 64 63 6f 70 | 79 2e 6c 69 73 70 0d 3b |;hardcop|y.lisp.;| |00005ec0| 3b 0d 3b 3b 0d 3b 3b 63 | 6f 70 79 72 69 67 68 74 |;.;;.;;c|opyright| |00005ed0| 20 31 39 38 38 2d 38 39 | 20 41 70 70 6c 65 20 43 | 1988-89| Apple C| |00005ee0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 3b 3b |omputer,| Inc..;;| |00005ef0| 0d 3b 3b 20 64 65 66 69 | 6e 65 73 20 61 20 76 65 |.;; defi|nes a ve| |00005f00| 72 79 20 62 61 73 69 63 | 20 70 72 69 6e 74 69 6e |ry basic| printin| |00005f10| 67 20 72 6f 75 74 69 6e | 65 20 66 6f 72 20 77 69 |g routin|e for wi| |00005f20| 6e 64 6f 77 73 0d 3b 3b | 0d 3b 3b 20 43 6f 64 65 |ndows.;;|.;; Code| |00005f30| 20 74 61 6b 65 6e 20 66 | 72 6f 6d 20 41 70 70 6c | taken f|rom Appl| |00005f40| 65 20 61 6e 64 20 42 69 | 6c 6c 20 4b 6f 72 6e 66 |e and Bi|ll Kornf| |00005f50| 65 6c 64 20 61 6e 64 20 | 70 6c 61 79 65 64 20 77 |eld and |played w| |00005f60| 69 74 68 20 61 20 62 69 | 74 20 74 6f 20 67 65 74 |ith a bi|t to get| |00005f70| 0d 3b 3b 20 73 6f 6d 65 | 74 68 69 6e 67 20 77 6f |.;; some|thing wo| |00005f80| 72 6b 69 6e 67 2e 20 20 | 54 72 79 69 6e 67 20 74 |rking. |Trying t| |00005f90| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 77 70 74 |o change| the wpt| |00005fa0| 72 20 61 6e 64 0d 3b 3b | 20 74 68 65 6e 20 64 6f |r and.;;| then do| |00005fb0| 69 6e 67 20 61 20 76 69 | 65 77 2d 64 72 61 77 2d |ing a vi|ew-draw-| |00005fc0| 63 6f 6e 74 65 6e 74 73 | 20 66 61 69 6c 73 20 2d |contents| fails -| |00005fd0| 2d 2d 20 4c 49 53 50 20 | 75 6e 65 78 70 65 63 74 |-- LISP |unexpect| |00005fe0| 61 6e 74 6c 79 20 71 75 | 69 74 73 2e 0d 3b 3b 20 |antly qu|its..;; | |00005ff0| 76 69 65 77 2d 64 72 61 | 77 2d 63 6f 6e 74 65 6e |view-dra|w-conten| |00006000| 74 73 20 77 69 74 68 6f | 75 74 20 63 68 61 6e 67 |ts witho|ut chang| |00006010| 69 6e 67 20 74 68 65 20 | 77 69 6e 64 6f 77 20 70 |ing the |window p| |00006020| 6f 69 6e 74 65 72 0d 3b | 3b 20 63 61 75 73 65 73 |ointer.;|; causes| |00006030| 20 61 20 70 72 69 6e 74 | 20 6a 6f 62 20 74 6f 20 | a print| job to | |00006040| 62 65 20 73 65 6e 74 20 | 74 6f 20 74 68 65 20 70 |be sent |to the p| |00006050| 72 69 6e 74 65 72 20 62 | 75 74 20 6e 6f 74 68 69 |rinter b|ut nothi| |00006060| 6e 67 20 63 6f 6d 65 73 | 20 6f 75 74 2e 0d 3b 3b |ng comes| out..;;| |00006070| 20 55 73 69 6e 67 20 61 | 20 70 72 69 6e 74 2d 63 | Using a| print-c| |00006080| 6f 6e 74 65 6e 74 73 20 | 66 75 6e 63 74 69 6f 6e |ontents |function| |00006090| 20 74 68 61 74 20 6a 75 | 73 74 20 6d 61 6b 65 73 | that ju|st makes| |000060a0| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate| |000060b0| 20 0d 3b 3b 20 63 61 6c | 6c 73 20 73 65 65 6d 73 | .;; cal|ls seems| |000060c0| 20 74 6f 20 77 6f 72 6b | 20 6f 6b 2e 20 54 68 65 | to work| ok. The| |000060d0| 20 62 61 73 69 63 20 70 | 72 69 6e 74 2d 63 6f 6e | basic p|rint-con| |000060e0| 74 65 6e 74 73 0d 3b 3b | 20 71 75 69 63 6b 64 72 |tents.;;| quickdr| |000060f0| 61 77 20 66 75 6e 63 74 | 69 6f 6e 73 20 66 6f 72 |aw funct|ions for| |00006100| 20 74 65 78 74 2c 20 76 | 69 65 77 73 20 61 6e 64 | text, v|iews and| |00006110| 20 77 69 6e 64 6f 77 73 | 20 61 72 65 20 64 65 66 | windows| are def| |00006120| 69 6e 65 64 20 68 65 72 | 65 2e 20 0d 3b 3b 20 53 |ined her|e. .;; S| |00006130| 6f 6d 65 20 65 78 74 72 | 61 20 70 72 69 6e 74 2d |ome extr|a print-| |00006140| 63 6f 6e 74 65 6e 74 73 | 20 66 75 6e 63 74 69 6f |contents| functio| |00006150| 6e 73 20 66 6f 72 20 6f | 74 68 65 72 20 69 74 65 |ns for o|ther ite| |00006160| 6d 73 20 69 73 20 64 65 | 66 69 6e 65 64 20 69 6e |ms is de|fined in| |00006170| 0d 3b 3b 20 6f 64 69 6e | 2d 70 72 69 6e 74 69 6e |.;; odin|-printin| |00006180| 67 2e 6c 69 73 70 20 2d | 2d 20 44 45 48 20 36 2f |g.lisp -|- DEH 6/| |00006190| 32 30 2f 39 31 0d 0d 3b | 3b 3b 2d 2d 2d 2d 2d 2d |20/91..;|;;------| |000061a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 50 72 69 |--------|---- Pri| |000061b0| 6e 74 65 72 20 63 6f 6e | 73 74 61 6e 74 73 2d 2d |nter con|stants--| |000061c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000061d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000061e0| 2d 2d 2d 2d 2d 2d 0d 28 | 64 65 66 63 6f 6e 73 74 |------.(|defconst| |000061f0| 61 6e 74 20 24 65 72 72 | 2d 70 72 69 6e 74 65 72 |ant $err|-printer| |00006200| 20 39 34 29 0d 28 64 65 | 66 63 6f 6e 73 74 61 6e | 94).(de|fconstan| |00006210| 74 20 24 65 72 72 2d 70 | 72 69 6e 74 65 72 2d 6c |t $err-p|rinter-l| |00006220| 6f 61 64 20 39 35 29 0d | 28 64 65 66 63 6f 6e 73 |oad 95).|(defcons| |00006230| 74 61 6e 74 20 24 65 72 | 72 2d 70 72 69 6e 74 65 |tant $er|r-printe| |00006240| 72 2d 73 74 61 72 74 20 | 39 37 29 0d 0d 3b 3b 3b |r-start |97)..;;;| |00006250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00006260| 2d 2d 20 50 69 63 74 75 | 72 65 20 63 6f 6d 6d 65 |-- Pictu|re comme| |00006270| 6e 74 20 6f 70 65 72 61 | 6e 64 20 2d 2d 2d 2d 2d |nt opera|nd -----| |00006280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00006290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 28 64 65 |--------|----.(de| |000062a0| 66 63 6f 6e 73 74 61 6e | 74 20 24 73 65 74 2d 6c |fconstan|t $set-l| |000062b0| 69 6e 65 2d 77 69 64 74 | 68 20 31 38 32 20 22 50 |ine-widt|h 182 "P| |000062c0| 69 63 74 75 72 65 20 63 | 6f 6d 6d 65 6e 74 20 66 |icture c|omment f| |000062d0| 6f 72 20 73 65 74 74 69 | 6e 67 20 6c 69 6e 65 20 |or setti|ng line | |000062e0| 77 69 64 74 68 22 29 0d | 0d 3b 3b 3b 2d 2d 2d 2d |width").|.;;;----| |000062f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 52 |--------|------ R| |00006300| 6f 75 74 69 6e 65 20 66 | 6f 72 20 74 72 61 70 70 |outine f|or trapp| |00006310| 69 6e 67 20 70 72 69 6e | 74 65 72 20 65 72 72 6f |ing prin|ter erro| |00006320| 72 73 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |rs------|--------| |00006330| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 28 64 65 66 75 6e 20 |--------|.(defun | |00006340| 70 72 69 6e 74 65 72 2d | 6f 6b 20 28 26 6f 70 74 |printer-|ok (&opt| |00006350| 69 6f 6e 61 6c 20 28 65 | 72 72 6e 75 6d 20 24 65 |ional (e|rrnum $e| |00006360| 72 72 2d 70 72 69 6e 74 | 65 72 29 0d 20 20 20 20 |rr-print|er). | |00006370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006380| 20 20 20 20 20 20 20 20 | 20 26 61 75 78 20 28 70 | | &aux (p| |00006390| 72 69 6e 74 2d 65 72 72 | 6f 72 20 28 23 5f 70 72 |rint-err|or (#_pr| |000063a0| 45 72 72 6f 72 29 29 29 | 0d 20 20 3b 3b 20 43 68 |Error)))|. ;; Ch| |000063b0| 65 63 6b 73 20 66 6f 72 | 20 61 20 70 72 69 6e 74 |ecks for| a print| |000063c0| 65 72 20 65 72 72 6f 72 | 20 66 6f 72 20 74 68 65 |er error| for the| |000063d0| 20 6c 61 73 74 20 70 72 | 69 6e 74 65 72 20 63 6f | last pr|inter co| |000063e0| 6d 6d 61 6e 64 0d 20 20 | 3b 3b 20 49 66 20 74 68 |mmand. |;; If th| |000063f0| 65 72 65 20 77 61 73 20 | 61 6e 20 65 72 72 6f 72 |ere was |an error| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.